mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Non-fungible token traits (#8993)
* Non-fungible token traits * Docs * Fixes * Implement non-fungible trait for Uniques * Update frame/uniques/src/impl_nonfungibles.rs Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> * Update frame/uniques/src/impl_nonfungibles.rs Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
@@ -544,6 +544,8 @@ pub enum TokenError {
|
||||
UnknownAsset,
|
||||
/// Funds exist but are frozen.
|
||||
Frozen,
|
||||
/// Operation is not supported by the asset.
|
||||
Unsupported,
|
||||
}
|
||||
|
||||
impl From<TokenError> for &'static str {
|
||||
@@ -555,6 +557,7 @@ impl From<TokenError> for &'static str {
|
||||
TokenError::CannotCreate => "Account cannot be created",
|
||||
TokenError::UnknownAsset => "The asset in question is unknown",
|
||||
TokenError::Frozen => "Funds exist but are frozen",
|
||||
TokenError::Unsupported => "Operation is not supported by the asset",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user