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
Hi, I'm testing a function in my ABI and getting the error: Error: token iost exceeds amount limit.
I have tried publishing the contract as unlimited amount limit, and still no luck.
Any advice would be appreciated.
The text was updated successfully, but these errors were encountered:
How do you solved?
Sorry, something went wrong.
@sonyyang49 @little-buddy You need this statement tx.addApprove('iost', amount) It makes your transaction approve the amount you set in client side.
tx.addApprove('iost', amount)
What you did in .abi file was just setting amount limit in blockchain side(sort of backend side)
Try like below:
const tx = iost.callABI( CONTRACT_ADDRESS, ACTION_NAME, [...arguments], ) tx.addApprove('iost', amount)
It's Ok. Thanks.👍
No branches or pull requests
Hi,
I'm testing a function in my ABI and getting the error: Error: token iost exceeds amount limit.
I have tried publishing the contract as unlimited amount limit, and still no luck.
Any advice would be appreciated.
The text was updated successfully, but these errors were encountered: