Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Edit network id check #1528

Merged
merged 2 commits into from
Dec 12, 2018
Merged

Edit network id check #1528

merged 2 commits into from
Dec 12, 2018

Conversation

eggplantzzz
Copy link
Contributor

@eggplantzzz eggplantzzz commented Dec 12, 2018

#1316

Compare string version of network id and edit Error instantiation in order to allow a string or number representation of the network_id.

`(${providerNetworkId}). Ensure that both the network and the ` +
`provider are properly configured.`
};
if (JSON.stringify(providerNetworkId) !== JSON.stringify(network_id)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should just use .toString() here. We want the loss of precision. Also, if providerNetworkId is a BN then we won't be able to JSONify that

@coveralls
Copy link

coveralls commented Dec 12, 2018

Coverage Status

Coverage remained the same at 69.816% when pulling 7fba3e5 on update-network-id-check into 7472f0d on next.

@gnidan gnidan merged commit fbc1d43 into next Dec 12, 2018
@gnidan gnidan deleted the update-network-id-check branch December 12, 2018 15:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants