Open harry-anderson opened 2 years ago
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!
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!