Running it via ethabi decode function abi.json levelUpAll 000000000.... yield nothing .
In my code I do the following :
let abi = {
let file = File::open("pathtomyabi").expect("failed to open ABI file");
Abi::from_reader(file).expect("failed to parse ABI")
};
// Where the tx is coming from a call to my node via rust-web3 crate .
let encoded_input = tx.input.clone();
// Decode
let maybe_a_result = abi
.decode_input_from_slice(&encoded_input.0.as_slice());
The piece of code above always crash with
thread 'tokio-runtime-worker' panicked at 'Integer overflow when casting to usize', /home/tbrunain/.cargo/registry/src/github.com-1ecc6299db9ec823/primitive-types-0.8.0/src/lib.rs:38:1
Any idea if there is something wrong am doing, or if it is a bug in the code ?
Hello,
am currently trying to decode the following input
which correspond to this abi :
Running it via
ethabi decode function abi.json levelUpAll 000000000....
yield nothing .In my code I do the following :
The piece of code above always crash with
Any idea if there is something wrong am doing, or if it is a bug in the code ?
(Here is the transaction am trying to decode the input of programatically : https://cchain.explorer.avax.network/tx/0xf2c0a3b014592969546762ad5c49b9644819f7de7f4017e41e398b98d22f94e2/token-transfers)