File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
crates/evm/src/executor/inspector/cheatcodes Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11use crate :: executor:: backend:: { error:: NoCheatcodeAccessError , DatabaseError } ;
2+ use alloy_dyn_abi:: DynSolValue ;
23use alloy_primitives:: Bytes ;
3- use ethers:: { abi :: AbiEncode , prelude:: k256:: ecdsa:: signature:: Error as SignatureError } ;
4+ use ethers:: prelude:: k256:: ecdsa:: signature:: Error as SignatureError ;
45use foundry_common:: errors:: FsPathError ;
56use foundry_config:: UnresolvedEnvVarError ;
67use foundry_utils:: error:: { encode_error, SolError } ;
@@ -178,7 +179,7 @@ impl SolError for Error {
178179 fn encode_string ( & self ) -> Bytes {
179180 match self {
180181 Self :: CustomBytes ( cow) => cow_to_bytes ( cow) ,
181- e => e. to_string ( ) . encode ( ) . into ( ) ,
182+ e => DynSolValue :: String ( e. to_string ( ) ) . encode_single ( ) . into ( ) ,
182183 }
183184 }
184185}
You can’t perform that action at this time.
0 commit comments