|
|
@ -69,6 +69,8 @@ def chain_id_to_int(chainId): |
|
|
|
if isinstance(chainId, str): |
|
|
|
if isinstance(chainId, str): |
|
|
|
assert chainId in chainIds, f'Chain {chainId} unknown, specify an integer chainId' |
|
|
|
assert chainId in chainIds, f'Chain {chainId} unknown, specify an integer chainId' |
|
|
|
return chainIds.get(chainId) |
|
|
|
return chainIds.get(chainId) |
|
|
|
|
|
|
|
elif isinstance(chainId, int): |
|
|
|
|
|
|
|
return chainId |
|
|
|
else: |
|
|
|
else: |
|
|
|
raise TypeError( 'chainId must be str or int' ) |
|
|
|
raise TypeError( 'chainId must be str or int' ) |
|
|
|
|
|
|
|
|
|
|
|