Skip to content

Commit

Permalink
fix: update snapshot after voting
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamu committed Apr 22, 2024
1 parent 8d5b380 commit 421b663
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/gov/handle_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,10 @@ func (m *Module) handleVoteEvent(tx *juno.Tx, voter string, events sdk.StringEve
}

// update tally result for given proposal
return m.UpdateProposalTallyResult(proposalID, tx.Height)
err = m.UpdateProposalTallyResult(proposalID, tx.Height)
if err != nil {
return err
}

return m.UpdateProposalStakingPoolSnapshot(tx.Height, proposalID)
}

0 comments on commit 421b663

Please sign in to comment.