diff options
Diffstat (limited to 'packages/contracts/deploy/src/utils/network.ts')
-rw-r--r-- | packages/contracts/deploy/src/utils/network.ts | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/packages/contracts/deploy/src/utils/network.ts b/packages/contracts/deploy/src/utils/network.ts deleted file mode 100644 index 74123e6a5..000000000 --- a/packages/contracts/deploy/src/utils/network.ts +++ /dev/null @@ -1,15 +0,0 @@ -import promisify = require('es6-promisify'); -import * as Web3 from 'web3'; - -import {Web3Wrapper} from './web3_wrapper'; - -export const network = { - async getNetworkIdIfExistsAsync(port: number): Promise<number> { - const url = `http://localhost:${port}`; - const web3Provider = new Web3.providers.HttpProvider(url); - const defaults = {}; - const web3Wrapper = new Web3Wrapper(web3Provider, defaults); - const networkIdIfExists = await web3Wrapper.getNetworkIdIfExistsAsync(); - return networkIdIfExists; - }, -}; |