defiweb / go-eth

A suite of tools for interacting with Ethereum-based blockchains.
MIT License
12 stars 5 forks source link

Payable function #8

Closed TDD01CAN closed 7 months ago

TDD01CAN commented 7 months ago

Hello, i got an issue with payable function encoding, how the lib manage to encode the "msg.value" field since we can't provide it explicitly ? I've tried to add an extra arg to the EncodeArgs() function but it's throwing an error for wrong arg number.

Any help would be greatly appreciated.

TDD01CAN commented 7 months ago

I just saw that you can pass the value into a Call/Transaction objects, since i just needed encoded data I've just ignored these objects till now ... but with encodeRLP() function of the Transaction it seems to fit what I need.

I close the issue :)