2
0
mirror of synced 2025-02-24 20:18:07 +00:00

Fixed custom network chain ID check.

This commit is contained in:
Richard Moore 2018-08-13 16:50:47 +01:00
parent 9e0bfa733b
commit 3635a9bb40
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

View File

@ -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;