We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6d1ed0 commit 75f9ac5Copy full SHA for 75f9ac5
1 file changed
src/test/mod.rs
@@ -1177,8 +1177,8 @@ async fn open_channel_raw(
1177
&& c.asset_id == asset_id.map(|id| id.to_string())
1178
&& c.asset_local_amount == asset_amount
1179
}) {
1180
- if channel.funding_txid.is_some() {
1181
- let txout = _get_txout(channel.funding_txid.as_ref().unwrap());
+ if let Some(txid) = &channel.funding_txid {
+ let txout = _get_txout(txid);
1182
if !txout.is_empty() {
1183
mine_n_blocks(false, 6);
1184
channel_id = Some(channel.channel_id.clone());
0 commit comments