From e42f517f6525e9875a710d002d65cc5f0131e560 Mon Sep 17 00:00:00 2001 From: Shoham Chakraborty Date: Wed, 6 Sep 2023 13:27:30 +0800 Subject: [PATCH] Fix feature_evm_rpc_filters test --- test/functional/feature_evm_rpc_filters.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/functional/feature_evm_rpc_filters.py b/test/functional/feature_evm_rpc_filters.py index 3c6d4dbd7a..bb34da2b43 100755 --- a/test/functional/feature_evm_rpc_filters.py +++ b/test/functional/feature_evm_rpc_filters.py @@ -104,6 +104,7 @@ def create_contract(self): node.generate(1) receipt = node.w3.eth.wait_for_transaction_receipt(hash) + self.contract_address = receipt["contractAddress"] self.contract = node.w3.eth.contract( address=receipt["contractAddress"], abi=abi ) @@ -133,6 +134,7 @@ def test_get_logs(self): { "fromBlock": "earliest", "toBlock": "latest", + "address": self.contract_address, } ) assert_equal(len(logs), 3) @@ -144,6 +146,7 @@ def test_get_filter_logs(self): { "fromBlock": "earliest", "toBlock": "latest", + "address": self.contract_address, } )