Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk committed Oct 30, 2024
1 parent 888d19c commit 4dcb0fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ console.log('transactionResult', transactionResult);
// #region call
// Call the contract
const { waitForResult: waitForCallResult } = await contract.functions
.test_function(10)
.test_function()
.call();
// Await the result of the call
const { value } = await waitForCallResult();
Expand Down
2 changes: 1 addition & 1 deletion apps/docs-snippets2/src/contracts/logs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ const { logs } = await waitForResult();
console.log('log[0]', logs[0].toNumber() === value1);
console.log('log[1]', logs[1] === value2);
console.log('log[2]', logs[2] === value3);
console.log('log[3]', logs[3].toNumber() === value4[0]);
console.log('log[3]', logs[3][0].toNumber() === value4[0]);

0 comments on commit 4dcb0fb

Please sign in to comment.