Skip to content

Commit

Permalink
provider back to a function
Browse files Browse the repository at this point in the history
  • Loading branch information
kevsul committed Jun 26, 2020
1 parent 398adf5 commit bcd4220
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion plasma_framework/truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit bcd4220

Please sign in to comment.