Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Apr 23, 2024
1 parent e4cf065 commit 2674e33
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions x/ophost/keeper/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ func (h *bridgeHook) BridgeChallengerUpdated(
return h.err
}

h.metadata = bridgeConfig.Metadata
h.challenger = bridgeConfig.Challenger

return nil
Expand All @@ -364,7 +363,6 @@ func (h *bridgeHook) BridgeProposerUpdated(
return h.err
}

h.metadata = bridgeConfig.Metadata
h.proposer = bridgeConfig.Proposer

return nil
Expand All @@ -379,7 +377,6 @@ func (h *bridgeHook) BridgeBatchInfoUpdated(
return h.err
}

h.metadata = bridgeConfig.Metadata
h.batchInfo = bridgeConfig.BatchInfo

return nil
Expand Down
2 changes: 1 addition & 1 deletion x/ophost/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ func (ms MsgServer) UpdateMetadata(ctx context.Context, req *types.MsgUpdateMeta
return nil, err
}

// gov or current proposer can update batch info.
// gov or current proposer can update metadata.
if ms.authority != req.Authority && config.Proposer != req.Authority {
return nil, govtypes.ErrInvalidSigner.Wrapf("invalid authority; expected %s or %s, got %s", ms.authority, config.Proposer, req.Authority)
}
Expand Down

0 comments on commit 2674e33

Please sign in to comment.