We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example incorrectly uses the call method instead of read to fetch data from the contract. Link to docs
Here is the incorrect snippet from the example:
const result = await contract.call('balanceOf', args); const balance = U256.fromBytes(result);
Correct Approach:
const result = await contract.read('balanceOf', args); const balance = U256.fromBytes(result.value);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Example incorrectly uses the call method instead of read to fetch data from the contract. Link to docs
Here is the incorrect snippet from the example:
Correct Approach:
The text was updated successfully, but these errors were encountered: