Skip to content

Commit ef1c700

Browse files
committed
ret
1 parent c85aa36 commit ef1c700

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

crates/evm/traces/src/decoder/precompiles.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ impl Precompile for Sha256 {
147147
fn signature(&self) -> &'static str {
148148
sha256Call::SIGNATURE
149149
}
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+
}
150155
}
151156

152157
struct Ripemd160;
@@ -158,6 +163,11 @@ impl Precompile for Ripemd160 {
158163
fn signature(&self) -> &'static str {
159164
ripemdCall::SIGNATURE
160165
}
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+
}
161171
}
162172

163173
struct Identity;

0 commit comments

Comments
 (0)