Skip to content

Commit

Permalink
coderabbit feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Dec 19, 2024
1 parent 8993c28 commit 76989af
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion proto/zetachain/zetacore/observer/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ syntax = "proto3";
package zetachain.zetacore.observer;

import "gogoproto/gogo.proto";
import "google/protobuf/field_mask.proto";
import "zetachain/zetacore/observer/blame.proto";
import "zetachain/zetacore/observer/crosschain_flags.proto";
import "zetachain/zetacore/observer/observer.proto";
Expand Down
2 changes: 1 addition & 1 deletion x/observer/types/operational.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func (f *OperationalFlags) Validate() error {
if f.SignerBlockTimeOffset != nil {
signerBlockTimeOffset := *f.SignerBlockTimeOffset
if signerBlockTimeOffset < 0 {
return ErrOperationalFlagsRestartHeightNegative
return ErrOperationalFlagsSignerBlockTimeOffsetNegative
}
if signerBlockTimeOffset > signerBlockTimeOffsetLimit {
return cosmoserrors.Wrapf(ErrOperationalFlagsSignerBlockTimeOffsetLimit, "(%s)", signerBlockTimeOffset)
Expand Down
2 changes: 1 addition & 1 deletion x/observer/types/operational_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestOperationalFlags_Validate(t *testing.T) {
of: types.OperationalFlags{
SignerBlockTimeOffset: ptr.Ptr(-time.Second),
},
errContains: types.ErrOperationalFlagsRestartHeightNegative.Error(),
errContains: types.ErrOperationalFlagsSignerBlockTimeOffsetNegative.Error(),
},
{
name: "signer offset limit exceeded",
Expand Down

0 comments on commit 76989af

Please sign in to comment.