We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi there,
I am trying to estimate the gas of transferring an ERC20 token using the contract method:
let res = contract .estimate_gas( "transfer", params, public_key, Options::default(), ) .await; println!("{:?}", res);
testing on ropsten via infura
Ok(21596)
testing on mainnet via infura
Err(Api(Rpc(Error { code: ServerError(-32000), message: "invalid opcode: INVALID", data: None })))
only changing the chain between tests. Any ideas what is causing this?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi there,
I am trying to estimate the gas of transferring an ERC20 token using the contract method:
testing on ropsten via infura
testing on mainnet via infura
only changing the chain between tests. Any ideas what is causing this?
Thanks in advance!
The text was updated successfully, but these errors were encountered: