hubiinetwork / hubii-core

The home of hubii core (aka Omphalos UI), the reference desktop app for nahmii
GNU General Public License v3.0
21 stars 4 forks source link

Identify network based on chainId rather than name #680

Closed liamaharon closed 5 years ago

liamaharon commented 5 years ago

Currently we ID mainnet by ethers.provider._network.name, which at this time is homestead. Since the Ethereum mainnet is likely to update soon, and the ethers library may update the name, we need to update core so it identifies the mainnet by chainId, which shouldn't ever change.