Skip to content

Commit

Permalink
Merge branch 'jdkanani/fixes'
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkanani committed Mar 16, 2021
2 parents 20d58df + 9375a2b commit 948e314
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/setup/devnet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ export class Devnet {
// set genesis addresses
this.config.genesisAddresses = genesisAddresses

// setup accounts from signer dump data
this.config.accounts = this.signerDumpData.map(s => {
// setup accounts from signer dump data (based on number of validators)
this.config.accounts = this.signerDumpData.slice(0, this.config.numOfValidators).map(s => {
return getAccountFromPrivateKey(s.priv_key)
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -x #echo on

DATA_DIR={{ ganache.dbName }}

docker-compose run --service-ports --name ganache ganache --hardfork istanbul \
docker-compose run --rm --service-ports --name ganache ganache --hardfork istanbul \
--blockTime 1 \
--db /root/data/$DATA_DIR \
{% for acc in obj.config.accounts %}--account {{ acc.privateKey }},1000000000000000000000 {% endfor %}\
Expand Down

0 comments on commit 948e314

Please sign in to comment.