ics721-types 0.1.0

an implementation of the ICS721 specification for transfering NFTs between blockchains
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

#[derive(Error, Debug, PartialEq)]
pub enum Ics721Error {
    #[error("empty class ID")]
    EmptyClassId {},

    #[error("must transfer at least one token")]
    NoTokens {},

    #[error("optional fields may not be empty if provided")]
    EmptyOptional {},

    #[error("tokenIds, tokenUris, and tokenData must have the same length")]
    TokenInfoLenMissmatch {},
}