Skip to content

Commit

Permalink
fix: fix wrong public key
Browse files Browse the repository at this point in the history
  • Loading branch information
junha1 committed Sep 3, 2022
1 parent 08e7ec2 commit 5050389
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ impl DelegationState {
))?
.0
.clone(),
validator_set.get(public_key).unwrap_or(&0) + *voting_power,
validator_set
.get(&self.original_validator_set[*current_delegatee].0)
.unwrap_or(&0)
+ *voting_power,
);
} else {
validator_set.insert(
Expand Down

0 comments on commit 5050389

Please sign in to comment.