gochain / web3

A CLI tool to interact with web3 blockchains - Ethereum, GoChain, etc
https://gochain.io
Apache License 2.0
402 stars 88 forks source link

Nil value is returning after calling any write contract method. #263

Closed MadhuS-1605 closed 2 years ago

MadhuS-1605 commented 2 years ago

Read contract methods can be called without any issue but, when we call a write contract method with proper args value it is returning nil data

treeder commented 2 years ago

Writing is async so you need to poll and wait for a receipt and ensure it was successful. Then you'd want to read the new value.