Skip to content

Commit

Permalink
feat: format DynSolValues for printing on anvil errors (#6111)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evalir authored Oct 25, 2023
1 parent 950d863 commit 546c96f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/anvil/src/eth/backend/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ use ethers::{
utils::{hex, keccak256, rlp},
};
use flate2::{read::GzDecoder, write::GzEncoder, Compression};
use foundry_common::abi::format_token;
use foundry_evm::{
decode::{decode_custom_error_args, decode_revert},
executor::{
Expand Down Expand Up @@ -934,7 +935,7 @@ impl Backend {
Some(token) => {
node_info!(
" Error: reverted with custom error: {:?}",
token
format_token(&token)
);
}
None => {
Expand Down

0 comments on commit 546c96f

Please sign in to comment.