Skip to content

Commit

Permalink
feat: add strict serialize to TokenData
Browse files Browse the repository at this point in the history
  • Loading branch information
theacdutra committed May 17, 2023
1 parent 79af2ae commit d2e56b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions std/src/interface/rgb21.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ pub struct TokenData {
pub reserves: Option<ProofOfReserves>,
}

impl StrictSerialize for TokenData {}
impl StrictDeserialize for TokenData {}

const FRACTION_OVERFLOW: u8 = 1;
const NON_EQUAL_VALUES: u8 = 2;
const INVALID_PROOF: u8 = 3;
Expand Down

0 comments on commit d2e56b6

Please sign in to comment.