Skip to content

Commit

Permalink
chore: use dry run.
Browse files Browse the repository at this point in the history
  • Loading branch information
j4m1ef0rd committed Nov 13, 2024
1 parent ffb44c2 commit 303f28f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,10 @@ pub trait BrokerApi: SignedExtrinsicApi + StorageApi + Sized + Send + Sync + 'st

async fn open_private_btc_channel(&self) -> Result<ChannelId> {
let (_, events, ..) = self
.submit_signed_extrinsic(RuntimeCall::from(
.submit_signed_extrinsic_with_dry_run(RuntimeCall::from(
pallet_cf_swapping::Call::open_private_btc_channel {},
))
.await
.await?
.until_in_block()
.await?;

Expand All @@ -502,10 +502,10 @@ pub trait BrokerApi: SignedExtrinsicApi + StorageApi + Sized + Send + Sync + 'st

async fn close_private_btc_channel(&self) -> Result<ChannelId> {
let (_, events, ..) = self
.submit_signed_extrinsic(RuntimeCall::from(
.submit_signed_extrinsic_with_dry_run(RuntimeCall::from(
pallet_cf_swapping::Call::close_private_btc_channel {},
))
.await
.await?
.until_in_block()
.await?;

Expand Down

0 comments on commit 303f28f

Please sign in to comment.