Skip to content

Commit

Permalink
Merge pull request #187 from poanetwork/fix-deploy-script
Browse files Browse the repository at this point in the history
Fix bad initialization of bridge Validators on deploy script
  • Loading branch information
akolotov authored May 23, 2019
2 parents c54cbbc + 6b971fb commit b1c4c35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy/src/erc_to_erc/foreign.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ async function deployForeign() {
nonce++

console.log('\ninitializing Foreign Bridge Validators with following parameters:\n')
bridgeValidatorsForeign.options.address = storageValidatorsForeign.options.address
await initializeValidators({
contract: bridgeValidatorsForeign,
isRewardableBridge: false,
Expand Down
1 change: 1 addition & 0 deletions deploy/src/erc_to_erc/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ async function deployHome() {
nonce++

console.log('\ninitializing Home Bridge Validators with following parameters:\n')
bridgeValidatorsHome.options.address = storageValidatorsHome.options.address
await initializeValidators({
contract: bridgeValidatorsHome,
isRewardableBridge: isRewardableBridge && BLOCK_REWARD_ADDRESS === ZERO_ADDRESS,
Expand Down
1 change: 1 addition & 0 deletions deploy/src/erc_to_native/foreign.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ async function deployForeign() {
nonce++

console.log('\ninitializing Foreign Bridge Validators with following parameters:\n')
bridgeValidatorsForeign.options.address = storageValidatorsForeign.options.address
await initializeValidators({
contract: bridgeValidatorsForeign,
isRewardableBridge: false,
Expand Down

0 comments on commit b1c4c35

Please sign in to comment.