From e7402ea37c872804bdb5c07c3cfc24eaf74d188e Mon Sep 17 00:00:00 2001 From: "F. Eugene Aumson" Date: Tue, 7 Apr 2020 01:09:21 -0400 Subject: [PATCH] HACK: fix ganache-core bug See open issue at https://github.com/trufflesuite/ganache-core/issues/465#issuecomment-610005598 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 2cb260448b..86be6603f7 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "author": "Francesco Agosti ", "license": "Apache-2.0", "scripts": { + "install": "sed -ie 's!import { Provider as Web3Provider } from \"web3/providers\";!import { Web3EthereumProvider as Web3Provider } from \"web3-providers\";!' node_modules/ganache-core/typings/index.d.ts # see https://github.com/trufflesuite/ganache-core/issues/465#issuecomment-610005598", "clean": "yarn clean:ts && yarn clean:docker", "clean:ts": "shx rm -rf lib", "clean:docker": "shx rm -rf 0x_mesh/db",