Change all instances of networkId
to chainId
(#2313)
* abi-gen/test: recompile contract fixtures for 3.0 It seems this hadn't been done since the merge with the 3.0 branch. * Sync `monorepo$ yarn test` exclusions to CI config * sra-spec: correct typo * contract-wrappers: TODO after coord.-server update * utils: fix typo in comment * Refactor networkId to chainId everywhere * Update CHANGELOGs
This commit is contained in:
@@ -60,7 +60,7 @@ def assert_valid(data: Mapping, schema_id: str) -> None:
|
||||
Raises an exception if validation fails.
|
||||
|
||||
>>> from zero_ex.json_schemas import assert_valid
|
||||
>>> from zero_ex.contract_addresses import network_to_addresses, NetworkId
|
||||
>>> from zero_ex.contract_addresses import chain_to_addresses, ChainId
|
||||
>>> from eth_utils import remove_0x_prefix
|
||||
>>> import random
|
||||
>>> from datetime import datetime, timedelta
|
||||
@@ -73,10 +73,10 @@ def assert_valid(data: Mapping, schema_id: str) -> None:
|
||||
... '0x0000000000000000000000000000000000000000'
|
||||
... ),
|
||||
... 'makerAssetData': (
|
||||
... network_to_addresses(NetworkId.MAINNET).zrx_token
|
||||
... chain_to_addresses(ChainId.MAINNET).zrx_token
|
||||
... ),
|
||||
... 'takerAssetData': (
|
||||
... network_to_addresses(NetworkId.MAINNET).ether_token
|
||||
... chain_to_addresses(ChainId.MAINNET).ether_token
|
||||
... ),
|
||||
... 'salt': random.randint(1, 100000000000000000),
|
||||
... 'makerFee': 0,
|
||||
|
Reference in New Issue
Block a user