Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
some debug output
  • Loading branch information
ivanl committed Nov 5, 2021
commit fbf2913c5c065c410ea1d0096f32faed564ace86
11 changes: 7 additions & 4 deletions proxy/test_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ def setUpClass(cls):
read_elf_params(cls.elf_params)

def test_neon_chain_id(self):
print("\n\nhttps://github.com/neonlabsorg/neon-evm/issues/347")
neon_chain_id = self.elf_params.get('NEON_CHAIN_ID', None)
print(f"NEON_CHAIN_ID = {neon_chain_id}")
assert (neon_chain_id is not None)
eth_chainId = proxy.eth.chain_id
print(f"eth_chainId = {eth_chainId}, type = {type(eth_chainId)}")

eth_chainId: int = proxy.eth.chain_id
print(f"eth_chainId = {eth_chainId}")
assert(eth_chainId == int(neon_chain_id))
net_version = proxy.net.version
print(f"net_version = {net_version}, type = {type(net_version)}")

net_version: str = proxy.net.version
print(f"net_version = {net_version}")
assert (net_version == neon_chain_id)