Skip to content

Commit

Permalink
fix: decode in ops
Browse files Browse the repository at this point in the history
  • Loading branch information
0xaatif committed May 15, 2024
1 parent 982148a commit 9bbfe3b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ops/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ impl Operation for TxProof {
.signed_txn
.as_ref()
.map(|txn| {
use alloy::rpc::types::eth::Transaction;
fn decode(_: &[u8]) -> Transaction {
todo!("rlp::decode::<Transaction>") // TODO(aatifsyed)
}
decode(txn).hash.to_string()
// https://docs.rs/ethers-core/2.0.14/src/ethers_core/types/transaction/response.rs.html#404
// https://docs.rs/rlp/latest/src/rlp/rlpin.rs.html#136
let hash = alloy::primitives::keccak256(txn);
hash.to_string()
})
.unwrap_or_else(|| {
format!(
Expand Down

0 comments on commit 9bbfe3b

Please sign in to comment.