File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
crates/evm/traces/src/decoder Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,11 @@ impl Precompile for Sha256 {
147
147
fn signature ( & self ) -> & ' static str {
148
148
sha256Call:: SIGNATURE
149
149
}
150
+
151
+ fn decode_return ( & self , data : & [ u8 ] ) -> alloy_sol_types:: Result < Vec < String > > {
152
+ let ret = sha256Call:: abi_decode_returns ( data) ?;
153
+ Ok ( vec ! [ ret. to_string( ) ] )
154
+ }
150
155
}
151
156
152
157
struct Ripemd160 ;
@@ -158,6 +163,11 @@ impl Precompile for Ripemd160 {
158
163
fn signature ( & self ) -> & ' static str {
159
164
ripemdCall:: SIGNATURE
160
165
}
166
+
167
+ fn decode_return ( & self , data : & [ u8 ] ) -> alloy_sol_types:: Result < Vec < String > > {
168
+ let ret = ripemdCall:: abi_decode_returns ( data) ?;
169
+ Ok ( vec ! [ ret. to_string( ) ] )
170
+ }
161
171
}
162
172
163
173
struct Identity ;
You can’t perform that action at this time.
0 commit comments