Skip to content

Commit

Permalink
maker DirBarrow::issue_to_file to use Outpoint instead of TxoSeal
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jan 14, 2025
1 parent b311814 commit 657bf0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/popls/bp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,10 @@ pub mod file {
pub type DirBarrow<W> = Barrow<W, FileSupply, FilePile<TxoSeal>, DirExcavator<TxoSeal>>;

impl<W: WalletProvider> DirBarrow<W> {
pub fn issue_to_file(&mut self, params: CreateParams<TxoSeal>) -> ContractId {
pub fn issue_to_file(&mut self, params: CreateParams<Outpoint>) -> ContractId {
// TODO: check that if the issue belongs to the wallet add it to the unspents
self.mound.issue_to_file(params)
self.mound
.issue_to_file(params.transform(self.noise_engine()))
}

pub fn consume_from_file(&mut self, path: impl AsRef<Path>) -> io::Result<()> {
Expand Down

0 comments on commit 657bf0a

Please sign in to comment.