-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Changes Some of the logs still contained calldata logged as an array of integers instead of a hex string. This is fixed by using `Derivative` to only overwrite the `Debug` implementation of these fields specifically. For this I copied and slightly adjusted 1 helper function from the `shared` crate to not make the `model` crate depend on `shared` just for that. ## How to test Look into the logs of the local node tests.
- Loading branch information
1 parent
9b90093
commit a0e6c05
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
pub fn debug_optional_bytes( | ||
bytes: &Option<impl AsRef<[u8]>>, | ||
formatter: &mut std::fmt::Formatter, | ||
) -> Result<(), std::fmt::Error> { | ||
match bytes { | ||
Some(bytes) => formatter.write_fmt(format_args!("0x{}", hex::encode(bytes.as_ref()))), | ||
None => formatter.write_str("None"), | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters