Skip to content

Commit

Permalink
fix: side effect fix
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Dec 8, 2023
1 parent ddb8ca0 commit 401d27d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"eth-typing>=3.4,<4",
"eth-utils>=2.2.0,<3",
"py-geth>=3.13.0,<4",
"web3[tester]>=6.7.0,<7",
"web3[tester]>=6.11.4,<7",
# ** Dependencies maintained by ApeWorX **
"eip712>=0.2.2,<0.3",
"ethpm-types>=0.6.0,<0.7",
Expand Down
4 changes: 3 additions & 1 deletion tests/functional/geth/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ def test_get_contract_creation_receipts(mock_geth, geth_contract, chain, network
geth_provider.__dict__["explorer"] = None
provider = networks.active_provider
networks.active_provider = mock_geth
mock_geth._web3.eth.get_block.side_effect = geth_provider.get_block
mock_geth._web3.eth.get_block.side_effect = (
lambda bid, *args, **kwargs: geth_provider.get_block(bid)
)

try:
mock_geth._web3.eth.get_code.return_value = b"123"
Expand Down

0 comments on commit 401d27d

Please sign in to comment.