Open hzqd opened 2 years ago
I code:
web3::contract::Contract::from_json(...).call(...).await?;
The problem is the call method returns a H256, how should I read the data of contract variables and functions execution results?
call
H256
You don't need to use call but query instead:
query
https://github.com/AmbireTech/adex-validator-stack-rust/blob/f4fb43b3c6c8765be7a7c68345379b72ad8cea01/adapter/src/ethereum/client.rs#L253-L265
I code:
The problem is the
call
method returns aH256
, how should I read the data of contract variables and functions execution results?