Skip to content
New issue

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

Token iost exceeds amount limit #23

Open
ghost opened this issue Aug 23, 2019 · 3 comments
Open

Token iost exceeds amount limit #23

ghost opened this issue Aug 23, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Aug 23, 2019

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.

@little-buddy
Copy link

How do you solved?

@nujabes403
Copy link
Contributor

@sonyyang49 @little-buddy
You need this statement tx.addApprove('iost', amount)
It makes your transaction approve the amount you set in client side.

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)

@little-buddy
Copy link

It's Ok.
Thanks.👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants