-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(x/nft): remove class&nft id validation (#13836)
(cherry picked from commit 5f4350d)
- Loading branch information
1 parent
3f2266a
commit 495fe73
Showing
10 changed files
with
49 additions
and
206 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
package nft | ||
|
||
import ( | ||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" | ||
"cosmossdk.io/errors" | ||
) | ||
|
||
// x/nft module sentinel errors | ||
var ( | ||
ErrInvalidNFT = sdkerrors.Register(ModuleName, 2, "invalid nft") | ||
ErrClassExists = sdkerrors.Register(ModuleName, 3, "nft class already exist") | ||
ErrClassNotExists = sdkerrors.Register(ModuleName, 4, "nft class does not exist") | ||
ErrNFTExists = sdkerrors.Register(ModuleName, 5, "nft already exist") | ||
ErrNFTNotExists = sdkerrors.Register(ModuleName, 6, "nft does not exist") | ||
ErrInvalidID = sdkerrors.Register(ModuleName, 7, "invalid id") | ||
ErrInvalidClassID = sdkerrors.Register(ModuleName, 8, "invalid class id") | ||
ErrClassExists = errors.Register(ModuleName, 3, "nft class already exist") | ||
ErrClassNotExists = errors.Register(ModuleName, 4, "nft class does not exist") | ||
ErrNFTExists = errors.Register(ModuleName, 5, "nft already exist") | ||
ErrNFTNotExists = errors.Register(ModuleName, 6, "nft does not exist") | ||
ErrEmptyClassID = errors.Register(ModuleName, 7, "empty class id") | ||
ErrEmptyNFTID = errors.Register(ModuleName, 8, "empty nft id") | ||
) |
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
Oops, something went wrong.