Skip to content

Commit

Permalink
Fix: Print evm full evm addr
Browse files Browse the repository at this point in the history
  • Loading branch information
vldm committed Jan 14, 2022
1 parent a6a127e commit 93987e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion evm-utils/evm-state/src/storage/walker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion evm-utils/programs/evm_loader/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down
2 changes: 1 addition & 1 deletion transaction-status/src/parse_evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 93987e1

Please sign in to comment.