Skip to content

Commit

Permalink
operation: add strict serialization for the state data
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Oct 15, 2024
1 parent ff5af2e commit 0bec2da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/operation/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use amplify::confinement::{SmallBlob, U16 as U16MAX};
use amplify::{Bytes32, Wrapper};
use baid64::{Baid64ParseError, DisplayBaid64, FromBaid64Str};
use commit_verify::{CommitmentId, DigestExt, ReservedBytes, Sha256};
use strict_encoding::{StrictSerialize, StrictType};
use strict_encoding::{StrictDeserialize, StrictSerialize, StrictType};

use crate::{impl_serde_baid64, LIB_NAME_RGB_COMMIT};

Expand Down Expand Up @@ -75,6 +75,9 @@ pub struct State {
pub attach: Option<AttachId>,
}

impl StrictSerialize for State {}
impl StrictDeserialize for State {}

impl State {
/// # Panics
///
Expand Down

0 comments on commit 0bec2da

Please sign in to comment.