Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Dec 17, 2024
1 parent bb11313 commit 2d5f95c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion e2e/e2etests/e2etests.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const (
TestCriticalAdminTransactionsName = "critical_admin_transactions"
TestPauseERC20CustodyName = "pause_erc20_custody"
TestMigrateERC20CustodyFundsName = "migrate_erc20_custody_funds"
TestMigrateTSSName = "migrate_TSS"
TestMigrateTSSName = "migrate_tss"
TestSolanaWhitelistSPLName = "solana_whitelist_spl"
TestOperationalFlagsName = "operational_flags"

Expand Down
13 changes: 7 additions & 6 deletions x/observer/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ var (
ErrObserverSetNotFound = errorsmod.Register(ModuleName, 1130, "observer set not found")
ErrTssNotFound = errorsmod.Register(ModuleName, 1131, "tss not found")

ErrInboundDisabled = errorsmod.Register(ModuleName, 1132, "inbound tx processing is disabled")
ErrInvalidZetaCoinTypes = errorsmod.Register(ModuleName, 1133, "invalid zeta coin types")
ErrNotObserver = errorsmod.Register(ModuleName, 1134, "sender is not an observer")
ErrDuplicateObserver = errorsmod.Register(ModuleName, 1135, "observer already exists")
ErrObserverNotFound = errorsmod.Register(ModuleName, 1136, "observer not found")
ErrInvalidObserverAddress = errorsmod.Register(ModuleName, 1137, "invalid observer address")
ErrInboundDisabled = errorsmod.Register(ModuleName, 1132, "inbound tx processing is disabled")
ErrInvalidZetaCoinTypes = errorsmod.Register(ModuleName, 1133, "invalid zeta coin types")
ErrNotObserver = errorsmod.Register(ModuleName, 1134, "sender is not an observer")
ErrDuplicateObserver = errorsmod.Register(ModuleName, 1135, "observer already exists")
ErrObserverNotFound = errorsmod.Register(ModuleName, 1136, "observer not found")
ErrInvalidObserverAddress = errorsmod.Register(ModuleName, 1137, "invalid observer address")
ErrOperationalFlagsRestartHeightNegative = errorsmod.Register(ModuleName, 1138, "restart height cannot be negative")
)
8 changes: 0 additions & 8 deletions x/observer/types/operational.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
package types

import (
"errors"
)

var (
ErrOperationalFlagsRestartHeightNegative = errors.New("restart height cannot be negative")
)

func (f *OperationalFlags) Validate() error {
if f.RestartHeight < 0 {
return ErrOperationalFlagsRestartHeightNegative
Expand Down

0 comments on commit 2d5f95c

Please sign in to comment.