Skip to content

Commit

Permalink
chore: fix no-defaults builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jan 30, 2025
1 parent 6c28001 commit a8e1293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/seals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

use core::fmt::{Debug, Display};

use bp::seals::mmb;
use single_use_seals::{PublishedWitness, SingleUseSeal};
use strict_encoding::{StrictDecode, StrictDumb, StrictEncode};
use ultrasonic::AuthToken;
Expand All @@ -39,7 +38,7 @@ pub trait RgbSealDef: Clone + Debug + Display + StrictDumb + StrictEncode + Stri
fn to_src(&self) -> Option<Self::Src>;
}

pub trait RgbSealSrc: SingleUseSeal<Message = mmb::Message> + Ord {}
pub trait RgbSealSrc: SingleUseSeal<Message: From<[u8; 32]>> + Ord {}

// Below are capabilities constants used in the standard library:

Expand Down
5 changes: 2 additions & 3 deletions src/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ use alloc::vec::Vec;

use amplify::confinement::SmallOrdMap;
use amplify::ByteArray;
use bp::seals::mmb;
use single_use_seals::{PublishedWitness, SealError, SealWitness};
use ultrasonic::{CallError, CellAddr, Codex, ContractId, LibRepo, Memory, Operation, Opid};

Expand Down Expand Up @@ -144,9 +143,9 @@ pub trait ContractVerify<SealDef: RgbSealDef>: ContractApi<SealDef> {
// channel).
match witness_reader.read_witness() {
Step::Next((witness, w)) => {
let msg = mmb::Message::from_byte_array(opid.to_byte_array());
let msg = opid.to_byte_array();
witness
.verify_seals_closing(&closed_seals, msg)
.verify_seals_closing(&closed_seals, msg.into())
.map_err(|e| VerificationError::SealsNotClosed(witness.published.pub_id(), opid, e))?;

// Each witness actually produces its own set of witness-output based seal sources.
Expand Down

0 comments on commit a8e1293

Please sign in to comment.