@@ -31,7 +31,7 @@ use alloc::vec;
31
31
use amplify:: confinement:: { Collection , NonEmptyVec , SmallOrdMap , SmallOrdSet , U8 as U8MAX } ;
32
32
use amplify:: { confinement, ByteArray , Bytes32 , Wrapper } ;
33
33
use bp:: dbc:: tapret:: TapretProof ;
34
- use bp:: seals:: { mmb, Anchor , TxoSeal , TxoSealExt , WTxoSeal } ;
34
+ use bp:: seals:: { mmb, Anchor , TxoSeal , TxoSealExt , WOutpoint , WTxoSeal } ;
35
35
use bp:: { Outpoint , Sats , ScriptPubkey , Tx , Vout } ;
36
36
use commit_verify:: mpc:: ProtocolId ;
37
37
use commit_verify:: { mpc, Digest , DigestExt , Sha256 } ;
@@ -48,7 +48,7 @@ use strict_types::StrictVal;
48
48
49
49
use crate :: stockpile:: { ContractState , EitherSeal } ;
50
50
use crate :: {
51
- Assignment , CreateParams , Excavate , IssueError , Mound , MoundConsumeError , Pile , Stockpile , Txid ,
51
+ Assignment , CreateParams , Excavate , IssueError , Mound , MoundConsumeError , Pile , Stockpile ,
52
52
} ;
53
53
54
54
/// Trait abstracting specific implementation of a bitcoin wallet.
@@ -261,14 +261,14 @@ impl OpRequest<Option<WoutAssignment>> {
261
261
& self ,
262
262
wout : WitnessOut ,
263
263
resolver : impl Fn ( & ScriptPubkey ) -> Option < Vout > ,
264
- ) -> Option < TxoSeal > {
264
+ ) -> Option < WTxoSeal > {
265
265
for assignment in & self . owned {
266
266
if let EitherSeal :: Alt ( Some ( assignment) ) = & assignment. state . seal {
267
267
if assignment. wout == wout {
268
268
let spk = assignment. script_pubkey ( ) ;
269
269
let vout = resolver ( & spk) ?;
270
- let primary = Outpoint :: new ( Txid :: from ( [ 0xFFu8 ; 32 ] ) , vout) ;
271
- let seal = TxoSeal { primary, secondary : TxoSealExt :: Noise ( wout. noise ( ) ) } ;
270
+ let primary = WOutpoint :: Wout ( vout) ;
271
+ let seal = WTxoSeal { primary, secondary : TxoSealExt :: Noise ( wout. noise ( ) ) } ;
272
272
return Some ( seal) ;
273
273
}
274
274
}
0 commit comments