web3swift
web3swift copied to clipboard
Deprecated description for Send ERC-20 Token
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"
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.