Skip to content

Commit

Permalink
pick: chore: add engine account_info logging #5347
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezs committed Oct 23, 2024
1 parent ab7104b commit 0a8a555
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 0a8a555

Please sign in to comment.