Skip to content

Commit

Permalink
use PaymentScript type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jan 25, 2025
1 parent 74be135 commit 1c59090
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use bpstd::seals::TxoSeal;
use bpstd::{Psbt, Sats};
use rgb::invoice::RgbInvoice;
use rgb::popls::bp::{
Barrow, BundleError, FulfillError, IncludeError, OpRequestSet, WoutAssignment,
Barrow, BundleError, FulfillError, IncludeError, OpRequestSet, PaymentScript,
};
use rgb::{ContractId, Excavate, Pile, Supply};
use rgpsbt::{RgbPsbt, RgbPsbtError, ScriptResolver};
Expand Down Expand Up @@ -82,7 +82,7 @@ impl<S: Supply, P: Pile<Seal = TxoSeal>, X: Excavate<S, P>> RgbRuntime<S, P, X>
// TODO: Return a dedicated Transfer object which can stream a consignment
pub fn transfer(
&mut self,
set: OpRequestSet<Option<WoutAssignment>>,
set: PaymentScript,
params: TxParams,
) -> Result<Psbt, TransferError> {
let (mut psbt, meta) = self.0.wallet.compose_psbt(&set, params)?;
Expand Down
4 changes: 2 additions & 2 deletions src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use bpstd::seals::TxoSeal;
use bpstd::{Address, Keychain, Network, Outpoint, Psbt, XpubDerivable};
use bpwallet::{Layer2Empty, NoLayer2, Wallet, WalletCache, WalletData, WalletDescr};
use nonasync::persistence::{PersistenceError, PersistenceProvider};
use rgb::popls::bp::{OpRequestSet, WalletProvider, WoutAssignment};
use rgb::popls::bp::{PaymentScript, WalletProvider};
use rgb::{AuthToken, EitherSeal, SealAuthToken};

use crate::descriptor::RgbDescr;
Expand Down Expand Up @@ -106,7 +106,7 @@ impl RgbWallet {

pub fn compose_psbt(
&mut self,
bundle: &OpRequestSet<Option<WoutAssignment>>,
bundle: &PaymentScript,
params: TxParams,
) -> Result<(Psbt, PsbtMeta), ConstructionError> {
let closes = bundle
Expand Down

0 comments on commit 1c59090

Please sign in to comment.