Skip to content

Commit

Permalink
fix error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Oct 1, 2024
1 parent 45694b9 commit b94aa64
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions x/claim/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import (

// x/claim module sentinel errors
var (
ErrInvalidSigner = errors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message")
ErrMissionNotFound = errors.Register(ModuleName, 2, "mission not found")
ErrClaimRecordNotFound = errors.Register(ModuleName, 3, "claim record not found")
ErrMissionCompleted = errors.Register(ModuleName, 4, "mission already completed")
ErrAirdropSupplyNotFound = errors.Register(ModuleName, 5, "airdrop supply not found")
ErrInitialClaimNotFound = errors.Register(ModuleName, 6, "initial claim information not found")
ErrInitialClaimNotEnabled = errors.Register(ModuleName, 7, "initial claim not enabled")
ErrMissionCompleteFailure = errors.Register(ModuleName, 8, "mission failed to complete")
ErrNoClaimable = errors.Register(ModuleName, 9, "no amount to be claimed")
ErrMissionNotCompleted = errors.Register(ModuleName, 10, "mission not completed yet")
ErrMissionAlreadyClaimed = errors.Register(ModuleName, 11, "mission already claimed")
ErrAirdropStartNotReached = errors.Register(ModuleName, 12, "airdrop start has not been reached yet")
ErrInvalidSigner = errors.Register(ModuleName, 1101, "expected gov account as only signer for proposal message")
ErrMissionNotFound = errors.Register(ModuleName, 1102, "mission not found")
ErrClaimRecordNotFound = errors.Register(ModuleName, 1103, "claim record not found")
ErrMissionCompleted = errors.Register(ModuleName, 1104, "mission already completed")
ErrAirdropSupplyNotFound = errors.Register(ModuleName, 1105, "airdrop supply not found")
ErrInitialClaimNotFound = errors.Register(ModuleName, 1106, "initial claim information not found")
ErrInitialClaimNotEnabled = errors.Register(ModuleName, 1107, "initial claim not enabled")
ErrMissionCompleteFailure = errors.Register(ModuleName, 1108, "mission failed to complete")
ErrNoClaimable = errors.Register(ModuleName, 1109, "no amount to be claimed")
ErrMissionNotCompleted = errors.Register(ModuleName, 1110, "mission not completed yet")
ErrMissionAlreadyClaimed = errors.Register(ModuleName, 1111, "mission already claimed")
ErrAirdropStartNotReached = errors.Register(ModuleName, 1112, "airdrop start has not been reached yet")
)

0 comments on commit b94aa64

Please sign in to comment.