Skip to content

Commit

Permalink
chore: add missing json related cheatcode inputs (foundry-rs#5441)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evalir authored Jul 20, 2023
1 parent e829fb1 commit 02e430c
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion evm/src/trace/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,30 @@ pub(crate) fn decode_cheatcode_inputs(
Some(decoded.iter().map(format_token).collect())
}
"deriveKey" => Some(vec!["<pk>".to_string()]),
"parseJson" | "writeJson" | "keyExists" => {
"parseJson" |
"parseJsonUint" |
"parseJsonUintArray" |
"parseJsonInt" |
"parseJsonIntArray" |
"parseJsonString" |
"parseJsonStringArray" |
"parseJsonAddress" |
"parseJsonAddressArray" |
"parseJsonBool" |
"parseJsonBoolArray" |
"parseJsonBytes" |
"parseJsonBytesArray" |
"parseJsonBytes32" |
"parseJsonBytes32Array" |
"writeJson" |
"keyExists" |
"serializeBool" |
"serializeUint" |
"serializeInt" |
"serializeAddress" |
"serializeBytes32" |
"serializeString" |
"serializeBytes" => {
if verbosity == 5 {
None
} else {
Expand Down

0 comments on commit 02e430c

Please sign in to comment.