Skip to content

Commit f1b9c49

Browse files
committed
Fix more todo's, migratye firehose type conversions to alloy instead of web3
1 parent 924ff9f commit f1b9c49

File tree

18 files changed

+694
-567
lines changed

18 files changed

+694
-567
lines changed

chain/ethereum/src/adapter.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,6 @@ mod tests {
13241324

13251325
#[test]
13261326
fn ethereum_trigger_filter_to_firehose() {
1327-
let address = |value: u64| Address::from_slice(&value.to_le_bytes());
13281327
let sig = |value: u64| B256::from_slice(&value.to_le_bytes());
13291328
let mut filter = TriggerFilter {
13301329
log: EthereumLogFilter {

chain/ethereum/src/chain.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -657,16 +657,6 @@ impl BlockFinality {
657657
}
658658
}
659659

660-
impl<'a> From<&'a BlockFinality> for BlockPtr {
661-
fn from(block: &'a BlockFinality) -> BlockPtr {
662-
match block {
663-
BlockFinality::Final(b) => BlockPtr::from(&**b),
664-
BlockFinality::NonFinal(b) => BlockPtr::from(&b.ethereum_block),
665-
BlockFinality::Ptr(b) => BlockPtr::new(b.hash.clone(), b.number),
666-
}
667-
}
668-
}
669-
670660
impl Block for BlockFinality {
671661
fn ptr(&self) -> BlockPtr {
672662
match self {

0 commit comments

Comments
 (0)