Skip to content

Commit 2a9ee1f

Browse files
committed
fix: ci test that was failing
1 parent e09f48d commit 2a9ee1f

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

crates/e2e-tests/src/foreign_chain_mock.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@ pub fn setup_evm_mock(server: &MockServer) -> usize {
115115
}
116116
}
117117
"eth_getTransactionReceipt" => {
118+
// The inspector rejects receipts and logs that are not bound to the
119+
// queried transaction, so echo the queried hash and keep the log's
120+
// tx/block fields consistent with the receipt.
121+
let transaction_hash = body["params"][0].as_str().expect("tx hash param");
118122
serde_json::json!({
123+
"transactionHash": transaction_hash,
119124
"blockHash": format!("0x{MOCK_BLOCK_HASH}"),
120125
"blockNumber": "0xa",
121126
"status": "0x1",
@@ -127,10 +132,10 @@ pub fn setup_evm_mock(server: &MockServer) -> usize {
127132
"0x0000000000000000000000000000000000000000000000000000000000008001",
128133
],
129134
"data": "0x000000000000000000000000000000000000000000000000000006e4b5898a00",
130-
"blockHash": "0x4c93dd4a8f347e6480b0a44f8c2b7eecdfb31d711e8d542fd60112ea5d98fb02",
131-
"blockNumber": "0xfbf4b1",
135+
"blockHash": format!("0x{MOCK_BLOCK_HASH}"),
136+
"blockNumber": "0xa",
132137
"l1BatchNumber": "0x4f3c",
133-
"transactionHash": "0x497fc5f5b5d81d6bc15cccc6d4d8be8ef6ad19376233b944a60dc435593f7234",
138+
"transactionHash": transaction_hash,
134139
"transactionIndex": "0x0",
135140
"logIndex": "0x0",
136141
"transactionLogIndex": "0x0",

0 commit comments

Comments
 (0)