Skip to content

Commit

Permalink
chore: add engine account_info logging (#5347)
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-llimos authored and dandanlen committed Oct 31, 2024
1 parent 5aaebf2 commit 5ffb2f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion engine/src/witness/sol/nonce_witnessing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ where

Ok(Some(hash))
},
Some(_) => Err(anyhow!("Expected UiAccountData::Json(ParsedAccount)")),
Some(_) =>
Err(anyhow!("Nonce data account encoding is not JsonParsed: {:?}", account_info)),
None => Ok(None),
}
}
Expand Down
5 changes: 4 additions & 1 deletion engine/src/witness/sol/sol_deposits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ fn parse_account_amount_from_data(
.parse()
.map_err(|_| anyhow::anyhow!("Failed to parse string to u128"))
},
_ => Err(anyhow::anyhow!("Data account encoding is not JsonParsed")),
_ => Err(anyhow::anyhow!(
"Data account encoding is not JsonParsed: {:?}",
deposit_channel_info.data
)),
}
},
}
Expand Down

0 comments on commit 5ffb2f5

Please sign in to comment.