Use in-process Ganache in contracts

This commit is contained in:
Leonid Logvinov
2018-03-09 14:34:53 +01:00
parent 392fb42973
commit d991291f2a

View File

@@ -1,5 +1,6 @@
import { web3Factory } from '@0xproject/dev-utils';
import { Web3Wrapper } from '@0xproject/web3-wrapper';
export const web3 = web3Factory.create();
const web3ProviderConfig = { useInProcessGanache: true };
export const web3 = web3Factory.create(web3ProviderConfig);
export const web3Wrapper = new Web3Wrapper(web3.currentProvider);