diff --git a/chain/ethereum/src/data_source.rs b/chain/ethereum/src/data_source.rs index b2303b6d053..ad1ddfb9419 100644 --- a/chain/ethereum/src/data_source.rs +++ b/chain/ethereum/src/data_source.rs @@ -857,8 +857,10 @@ impl DataSource { .abi_decode_input(&call.input.0[4..]) .with_context(|| { format!( - "Generating function inputs for the call {:?} failed, raw input: {}", + "Generating function inputs for the call {:?} failed, contract: {:#x}, block: {}, raw input: 0x{}", &function_abi, + call.to, + call.block_number, hex::encode(&call.input.0) ) }) { @@ -889,8 +891,11 @@ impl DataSource { .abi_decode_output(&call.output.0) .with_context(|| { format!( - "Decoding function outputs for the call {:?} failed, raw output: {}", + "Decoding function outputs for the call {:?} failed, contract: {:#x}, block: {}, input: 0x{}, raw output: 0x{}", &function_abi, + call.to, + call.block_number, + hex::encode(&call.input.0), hex::encode(&call.output.0) ) })?;