Skip to content

Commit 441acdb

Browse files
committed
chain/ethereum: use dummy signature with zero values
1 parent 026a99f commit 441acdb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

chain/ethereum/src/codec.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ mod pbcodec;
44

55
use anyhow::format_err;
66
use graph::{
7-
alloy_todo,
87
blockchain::{
98
self, Block as BlockchainBlock, BlockPtr, BlockTime, ChainStoreBlock, ChainStoreData,
109
},
@@ -723,7 +722,12 @@ fn extract_signature_from_trace(
723722
_trace: &TransactionTrace,
724723
_tx_type: TxType,
725724
) -> Result<alloy::signers::Signature, Error> {
726-
alloy_todo!()
725+
use alloy::primitives::{Signature as PrimitiveSignature, U256};
726+
727+
// Create a dummy signature with r = 0, s = 0 and even y-parity (false)
728+
let dummy = PrimitiveSignature::new(U256::ZERO, U256::ZERO, false);
729+
730+
Ok(dummy.into())
727731
}
728732

729733
fn get_to_address(trace: &TransactionTrace) -> Result<Option<Address>, Error> {

0 commit comments

Comments
 (0)