web3swift icon indicating copy to clipboard operation
web3swift copied to clipboard

Deprecated description for Send ERC-20 Token

Open 6od9i opened this issue 2 years ago • 1 comments

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"

6od9i avatar May 18 '22 09:05 6od9i

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.

mloit avatar May 19 '22 16:05 mloit