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

Deprecated description for Send ERC-20 Token #568

Closed
6od9i opened this issue May 18, 2022 · 1 comment
Closed

Deprecated description for Send ERC-20 Token #568

6od9i opened this issue May 18, 2022 · 1 comment
Labels
FAQ common questions tend to recur about web3 infra

Comments

@6od9i
Copy link
Contributor

6od9i commented May 18, 2022

https://github.com/skywinder/web3swift#send-erc-20-token

When send ERC-20 Token not needed line - "options.value = amount" because method "transfer" in erc20ABI is not "payable"

@mloit
Copy link
Contributor

mloit commented May 19, 2022

Generally speaking ALL transactions need a value, even if not payable. So if the transaction has no value, set value to 0. The requirement for it to be set in options is there because value is a required field for a transaction on the chain.

@Kristenlike1234 Kristenlike1234 added the FAQ common questions tend to recur about web3 infra label Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FAQ common questions tend to recur about web3 infra
Projects
None yet
Development

No branches or pull requests

3 participants