Skip to content

Commit

Permalink
fix: change simulate to get method
Browse files Browse the repository at this point in the history
  • Loading branch information
luizstacio authored Mar 30, 2024
1 parent 8e4910b commit 3c749b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/react-app/src/components/counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function ContractCounter() {
const { value } = await counterContract.functions
.count()
.txParams({ gasPrice: 1, gasLimit: 100_000 })
.simulate();
.get();
setCounter(value.toNumber());
} catch (error) {
console.error(error);
Expand Down

0 comments on commit 3c749b8

Please sign in to comment.