Skip to content

Commit d7f6c12

Browse files
committed
f - use reference
1 parent fdd4e41 commit d7f6c12

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bindings/ldk_node.udl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ interface Node {
143143
[Throws=NodeError]
144144
void splice_in([ByRef]UserChannelId user_channel_id, PublicKey counterparty_node_id, u64 splice_amount_sats);
145145
[Throws=NodeError]
146-
void splice_out([ByRef]UserChannelId user_channel_id, PublicKey counterparty_node_id, Address address, u64 splice_amount_sats);
146+
void splice_out([ByRef]UserChannelId user_channel_id, PublicKey counterparty_node_id, [ByRef]Address address, u64 splice_amount_sats);
147147
[Throws=NodeError]
148148
void close_channel([ByRef]UserChannelId user_channel_id, PublicKey counterparty_node_id);
149149
[Throws=NodeError]

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ impl Node {
13401340
/// paid to an address associated with the on-chain wallet, but this classification may change
13411341
/// in the future.
13421342
pub fn splice_out(
1343-
&self, user_channel_id: &UserChannelId, counterparty_node_id: PublicKey, address: Address,
1343+
&self, user_channel_id: &UserChannelId, counterparty_node_id: PublicKey, address: &Address,
13441344
splice_amount_sats: u64,
13451345
) -> Result<(), Error> {
13461346
let open_channels =
@@ -1352,7 +1352,7 @@ impl Node {
13521352
return Err(Error::ChannelSplicingFailed);
13531353
}
13541354

1355-
self.wallet.parse_and_validate_address(&address)?;
1355+
self.wallet.parse_and_validate_address(address)?;
13561356

13571357
let contribution = SpliceContribution::SpliceOut {
13581358
outputs: vec![bitcoin::TxOut {

0 commit comments

Comments
 (0)