Skip to content

Commit

Permalink
fix: handle nil pointer in upgrade hook (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKetmo authored Dec 21, 2023
1 parent 2262ad9 commit 24ea911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/watcher/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ func (w *UpgradeWatcher) OnNewBlock(ctx context.Context, node *rpc.Node, evt *ct

// Upgrade plan is for this block
go w.triggerWebhook(ctx, node.ChainID(), *w.nextUpgradePlan)
w.nextUpgradePlan = nil
w.latestWebhookSent = w.nextUpgradePlan.Height
w.nextUpgradePlan = nil

return nil
}
Expand Down

0 comments on commit 24ea911

Please sign in to comment.