-
Notifications
You must be signed in to change notification settings - Fork 274
invalid sender when sending a transaction using prepareforpaymentcall #15
Comments
@DrasiusMajere Are you using ropsten? I just submitted PR #16 that will allow you to specify a |
Yes, I'm testing and obviously using ropsten.... |
The PR will allow you to specify a transaction.prepareForSimpleTransaction(
new EthereumAddress("0x[...]"), // your target address
EtherAmount.fromUnitAndValue(EtherUnit.finney, 300)
).send(ethClient, chainId: 3); |
It's working. |
i had a same issue invalid sender when sending a transaction, |
Actually send method return the transaction Id as a list of bytes, if you want an hexadecimal id more readable. I found a function that uses web3dart called bytesToHex. Maybe it would be recommended divide the code above in smaller parts. |
i am getting error |
What IDE are you using? because you can leave the IDE looks for the appropriate library that contains that function and add the import statements automatically. |
I'm using a solidity contract version 0.5.0 and infura for sending transactions. The function is not payable
for this reason I'm using EtherAmount.zero() parameter
The text was updated successfully, but these errors were encountered: