mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-19 13:14:22 +00:00
Fetching network version using callback
This commit is contained in:
parent
818cdfdba7
commit
2e860d7a65
@ -50,7 +50,7 @@ const getAccountFrom: Function = async (web3Provider): Promise<string | null> =>
|
||||
}
|
||||
|
||||
const getNetworkIdFrom = async (web3Provider) => {
|
||||
const networkId = await web3Provider.version.network
|
||||
const networkId = await promisify(cb => web3Provider.version.getNetwork(cb))
|
||||
|
||||
return networkId
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user