Skip to content

Commit 56eee8b

Browse files
committed
update failing tests
1 parent 71b59f0 commit 56eee8b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

chain/ethereum/src/tests.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@ use std::sync::Arc;
22

33
use graph::{
44
blockchain::{block_stream::BlockWithTriggers, BlockPtr, Trigger},
5-
components::ethereum::BlockWrapper,
65
prelude::{
76
alloy::{
87
self,
98
primitives::{Address, Bytes, LogData, B256},
109
rpc::types::{Block, Log},
1110
},
1211
rand::{self, Rng},
13-
EthereumCall,
12+
EthereumCall, LightEthereumBlock,
1413
},
1514
slog::{self, o, Logger},
1615
};

graph/src/abi/event_ext.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,10 @@ mod tests {
130130
let log = make_log(&[topic_0, a, a, a, a], b);
131131
let err = event.decode_log(&log).unwrap_err();
132132

133-
assert_eq!(err.to_string(), "log has an invalid number of topics");
133+
assert_eq!(
134+
err.to_string(),
135+
"invalid log topic list length: expected 2 topics, got 5"
136+
);
134137
}
135138

136139
#[test]

0 commit comments

Comments
 (0)