web3dart icon indicating copy to clipboard operation
web3dart copied to clipboard

Transaction value property can be null but it's not compatible with some EVM Wallets

Open redDwarf03 opened this issue 1 year ago • 0 comments
trafficstars

Hello

The transaction's value is null by default. For example, Phantom wallet send an RPC error "got code 9991 with msg "Missing or invalid parameters" when value is null. We should send EtherAmount.zero instead of null

Do you think it will be ok to replace null to 0 by default ? Any impact with other wallet ?

I precise i use for example eth_sendTransaction with a Transaction.value = null to create HTLC Contract

redDwarf03 avatar May 17 '24 16:05 redDwarf03