Skip to content

Commit

Permalink
fix(period): wrong name for validator address attribute in period opt…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
troggy committed Jan 28, 2020
1 parent 0c3b2a0 commit 45fb59d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/period.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ export default class Period {
if (blocks) {
blocks.forEach(block => this.addBlock(block));
}

const { slotId, ownerAddr, casBitmap } = opts.validatorData || {};
if ((slotId || slotId === 0) && ownerAddr) {
this.setValidatorData(slotId, ownerAddr, casBitmap);
const { slotId, validatorAddress, casBitmap } = opts.validatorData || {};
if ((slotId || slotId === 0) && validatorAddress) {
this.setValidatorData(slotId, validatorAddress, casBitmap);
}
}

Expand Down

0 comments on commit 45fb59d

Please sign in to comment.