From 93987e1615816d0109ec72a7af6b9763fac274fb Mon Sep 17 00:00:00 2001 From: Vladimir Motylenko Date: Fri, 14 Jan 2022 15:07:57 +0200 Subject: [PATCH] Fix: Print evm full evm addr --- evm-utils/evm-state/src/storage/walker.rs | 2 +- evm-utils/programs/evm_loader/src/processor.rs | 2 +- transaction-status/src/parse_evm.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/evm-utils/evm-state/src/storage/walker.rs b/evm-utils/evm-state/src/storage/walker.rs index b26abe4021..8a81a944ad 100644 --- a/evm-utils/evm-state/src/storage/walker.rs +++ b/evm-utils/evm-state/src/storage/walker.rs @@ -55,7 +55,7 @@ where let db = self.db.borrow(); let bytes = db .get(hash)? - .ok_or_else(|| anyhow!("hash {:?} not found in database"))?; + .ok_or_else(|| anyhow!("hash {:?} not found in database", hash))?; trace!("raw bytes: {:?}", bytes); let rlp = Rlp::new(bytes.as_slice()); diff --git a/evm-utils/programs/evm_loader/src/processor.rs b/evm-utils/programs/evm_loader/src/processor.rs index 25acbaaf91..7683be6702 100644 --- a/evm-utils/programs/evm_loader/src/processor.rs +++ b/evm-utils/programs/evm_loader/src/processor.rs @@ -309,7 +309,7 @@ impl EvmProcessor { ic_msg!( invoke_context, - "SwapNativeToEther: Sending tokens from native to evm chain from={},to={}", + "SwapNativeToEther: Sending tokens from native to evm chain from={},to={:?}", user.unsigned_key(), evm_address ); diff --git a/transaction-status/src/parse_evm.rs b/transaction-status/src/parse_evm.rs index 4529946915..5fc7508850 100644 --- a/transaction-status/src/parse_evm.rs +++ b/transaction-status/src/parse_evm.rs @@ -77,7 +77,7 @@ pub fn parse_evm( check_num_stake_accounts(&instruction.accounts, 2)?; let info = json!({ "fromNativeAccount": account_keys[instruction.accounts[1] as usize].to_string(), - "toEvmAccount": evm_address.to_string(), + "toEvmAccount": format!("{:?}", evm_address), "lamports": lamports, }); Ok(ParsedInstructionEnum {