Fixed custom network chain ID check.
This commit is contained in:
parent
9e0bfa733b
commit
3635a9bb40
@ -95,7 +95,7 @@ export function getNetwork(network: Networkish): Network {
|
||||
|
||||
// Not a standard network; check that it is a valid network in general
|
||||
if (!n) {
|
||||
if (typeof(n.chainId) !== 'number') {
|
||||
if (typeof(network.chainId) !== 'number') {
|
||||
errors.throwError('invalid network chainId', errors.INVALID_ARGUMENT, { arg: 'network', value: network });
|
||||
}
|
||||
return network;
|
||||
|
Loading…
x
Reference in New Issue
Block a user