From 76989af1a530a452f652adc47d688bd3535e2375 Mon Sep 17 00:00:00 2001 From: Alex Gartner Date: Thu, 19 Dec 2024 08:10:12 -0800 Subject: [PATCH] coderabbit feedback --- proto/zetachain/zetacore/observer/tx.proto | 1 - x/observer/types/operational.go | 2 +- x/observer/types/operational_test.go | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/proto/zetachain/zetacore/observer/tx.proto b/proto/zetachain/zetacore/observer/tx.proto index aaeb62ba7c..b3e1c1ab97 100644 --- a/proto/zetachain/zetacore/observer/tx.proto +++ b/proto/zetachain/zetacore/observer/tx.proto @@ -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"; diff --git a/x/observer/types/operational.go b/x/observer/types/operational.go index bdc4d124de..4da766c53a 100644 --- a/x/observer/types/operational.go +++ b/x/observer/types/operational.go @@ -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) diff --git a/x/observer/types/operational_test.go b/x/observer/types/operational_test.go index 077e083bb0..79c8caf0dc 100644 --- a/x/observer/types/operational_test.go +++ b/x/observer/types/operational_test.go @@ -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",