Fetching network version using callback

This commit is contained in:
apanizo 2018-08-29 09:19:40 +02:00
parent 818cdfdba7
commit 2e860d7a65
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ const getAccountFrom: Function = async (web3Provider): Promise<string | null> =>
} }
const getNetworkIdFrom = async (web3Provider) => { const getNetworkIdFrom = async (web3Provider) => {
const networkId = await web3Provider.version.network const networkId = await promisify(cb => web3Provider.version.getNetwork(cb))
return networkId return networkId
} }