Skip to content

Commit

Permalink
Fix: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhurajeev committed Apr 27, 2022
1 parent 5b30e43 commit 9b78477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions root/src/mappings/staking-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export function handleUnJailed(event: UnJailed): void {

export function handleStakeUpdate(event: StakeUpdate): void {
let validator = loadValidator(event.params.validatorId)

// update total staked and nonce
validator.totalStaked = event.params.newAmount
validator.nonce = event.params.nonce
Expand All @@ -171,7 +171,7 @@ export function handleStakeUpdate(event: StakeUpdate): void {
stakeUpdate.block = event.block.number
stakeUpdate.transactionHash = event.transaction.hash
stakeUpdate.validatorId = event.params.validatorId
stakeUpdate.logIndex = event.logIndex;
stakeUpdate.logIndex = event.logIndex

validator.save()
stakeUpdate.save()
Expand Down

0 comments on commit 9b78477

Please sign in to comment.