Skip to content

Commit

Permalink
integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Oct 27, 2023
1 parent 1ea09aa commit 4ce15f7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/integration_tests/test_call.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from web3 import Web3

Check failure on line 1 in tests/integration_tests/test_call.py

View workflow job for this annotation

GitHub Actions / Run flake8 on python integration tests

./tests/integration_tests/test_call.py:1:1: I003 isort expected 1 blank line in imports, found 0
import json

Check failure on line 2 in tests/integration_tests/test_call.py

View workflow job for this annotation

GitHub Actions / Run flake8 on python integration tests

./tests/integration_tests/test_call.py:2:1: I001 isort found an import in the wrong position

from .utils import CONTRACTS


def test_state_override(ethermint):
w3: Web3 = ethermint.w3
info = json.loads(CONTRACTS['Greeter'].read_text())
address = "0x0000000000000000000000000000ffffffffffff"
overrides = {
address: {
"code": info['deployedBytecode'],
},
}
contract = w3.eth.contract(abi=info['abi'], address=address)
print(contract.greet().call("latest", overrides))

0 comments on commit 4ce15f7

Please sign in to comment.