Skip to content

Commit

Permalink
chore: fix panic in governance
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyletang committed Apr 24, 2024
1 parent 0921407 commit 897c906
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/governance/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,9 @@ func (e *Engine) restoreEnactedProposals(ctx context.Context, enacted *types.Gov
vevts := []events.Event{}
e.log.Debug("restoring enacted proposals snapshot", logging.Int("nproposals", len(enacted.Proposals)))
for _, p := range enacted.Proposals {
if p.Proposal == nil {
continue
}
pp := &proposal{
Proposal: p.Proposal,
yes: votesAsMap(p.Yes),
Expand Down

0 comments on commit 897c906

Please sign in to comment.