-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dreamer
committed
Oct 19, 2023
1 parent
3631ead
commit b25165e
Showing
3 changed files
with
34 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
package types | ||
|
||
import ( | ||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" | ||
errormod "cosmossdk.io/errors" | ||
) | ||
|
||
var ( | ||
ErrInvalidCollection = sdkerrors.Register(ModuleName, 9, "invalid nft collection") | ||
ErrUnknownCollection = sdkerrors.Register(ModuleName, 10, "unknown nft collection") | ||
ErrInvalidNFT = sdkerrors.Register(ModuleName, 11, "invalid nft") | ||
ErrNFTAlreadyExists = sdkerrors.Register(ModuleName, 12, "nft already exists") | ||
ErrUnknownNFT = sdkerrors.Register(ModuleName, 13, "unknown nft") | ||
ErrEmptyTokenData = sdkerrors.Register(ModuleName, 14, "nft data can't be empty") | ||
ErrUnauthorized = sdkerrors.Register(ModuleName, 15, "unauthorized address") | ||
ErrInvalidDenom = sdkerrors.Register(ModuleName, 16, "invalid denom") | ||
ErrInvalidTokenID = sdkerrors.Register(ModuleName, 17, "invalid nft id") | ||
ErrInvalidTokenURI = sdkerrors.Register(ModuleName, 18, "invalid nft uri") | ||
ErrInvalidCollection = errormod.Register(ModuleName, 9, "invalid nft collection") | ||
ErrUnknownCollection = errormod.Register(ModuleName, 10, "unknown nft collection") | ||
ErrInvalidNFT = errormod.Register(ModuleName, 11, "invalid nft") | ||
ErrNFTAlreadyExists = errormod.Register(ModuleName, 12, "nft already exists") | ||
ErrUnknownNFT = errormod.Register(ModuleName, 13, "unknown nft") | ||
ErrEmptyTokenData = errormod.Register(ModuleName, 14, "nft data can't be empty") | ||
ErrUnauthorized = errormod.Register(ModuleName, 15, "unauthorized address") | ||
ErrInvalidDenom = errormod.Register(ModuleName, 16, "invalid denom") | ||
ErrInvalidTokenID = errormod.Register(ModuleName, 17, "invalid nft id") | ||
ErrInvalidTokenURI = errormod.Register(ModuleName, 18, "invalid nft uri") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters