Closed dtfiedler closed 10 months ago
Describe the bug readStateBatch returns null for contract with no interactions
readStateBatch
null
To Reproduce Steps to reproduce the behavior.
const pagesPerBatch = 1; const contract = warp .contract(`iQDr9N2VhKISjVnCe_ZwLIE7GUQJ26fG4zEFl0xyKHQ`); // a contract with no interactions const { cachedValue } = await contract.readStateBatch(pagesPerBatch, undefined, undefined); console.log('result', cachedValue); if (!cachedValue){ throw new Error('readStateBatch returned null for contract'); }
Expected behavior readStateBatch returns the initial state of the contract if it has no interactions.
Desktop (please complete the following information):
Additional context Recommend removing this check so the contract is evaluated at least once.
Fixed in 1.4.32
1.4.32
Describe the bug
readStateBatch
returnsnull
for contract with no interactionsTo Reproduce Steps to reproduce the behavior.
Expected behavior
readStateBatch
returns the initial state of the contract if it has no interactions.Desktop (please complete the following information):
Additional context Recommend removing this check so the contract is evaluated at least once.