web3swift icon indicating copy to clipboard operation
web3swift copied to clipboard

sendETH function error!!!

Open zhiliang729 opened this issue 3 years ago • 1 comments

File: Web+Eth.swift Line: 279,300

guard let value = Web3.Utils.parseToBigUInt(amount, units: .eth) else {return nil}

should be:

guard let value = Web3.Utils.parseToBigUInt(amount, units: units) else {return nil}

zhiliang729 avatar Jan 19 '22 08:01 zhiliang729

The amount unit must be wei

liujunliuhong avatar Jan 26 '22 06:01 liujunliuhong