diff --git a/Dockerfile b/Dockerfile index be51ee1ed..cc7aa4b57 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,10 @@ COPY . /home/plasma-contracts WORKDIR /home/plasma-contracts/plasma_framework RUN rm -Rf ./node_modules +RUN rm -Rf ./build RUN npm install +RUN npx truffle version + RUN npx truffle compile diff --git a/plasma_framework/truffle-config.js b/plasma_framework/truffle-config.js index 46486a4b2..44eae44f4 100644 --- a/plasma_framework/truffle-config.js +++ b/plasma_framework/truffle-config.js @@ -25,7 +25,7 @@ module.exports = { // https://github.com/trufflesuite/truffle/issues/852#issuecomment-522367001 // Using 0's as private key because it'll throw an error if the private keys // are undefined as this is instanciating a class.... - provider: new HDWalletProvider( + provider: () => new HDWalletProvider( [ process.env.DEPLOYER_PRIVATEKEY || '0'.repeat(64), process.env.MAINTAINER_PRIVATEKEY || '0'.repeat(64),