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, } )