Skip to content

Commit

Permalink
cmd/restoration: fix chainid compare bug
Browse files Browse the repository at this point in the history
  • Loading branch information
this-is-iron committed Jun 18, 2024
1 parent a87ea1f commit 3859bb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/restoration/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ func (h *Handler) HandleFeeRecipient() string {
}

func (h *Handler) checkRestoreData(ctx context.Context, restoreData *types.RestoreData) error {
if restoreData.ChainID != h.chainId {
return fmt.Errorf("chain ID mismatch")
if restoreData.ChainID.Cmp(h.chainId) != 0 {
return fmt.Errorf("chain ID mismatch %s, %s", h.chainId.String(), restoreData.ChainID.String())
}
if restoreData.FeeRecipient == nil || *restoreData.FeeRecipient != h.signer {
return fmt.Errorf("fee recipient must be %s", h.signer.Hex())
Expand Down

0 comments on commit 3859bb0

Please sign in to comment.