From 596d9698812d0cc38e9c5c86f91a7da73a801ee7 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Wed, 16 Jul 2025 18:01:05 +0800 Subject: [PATCH] btcwallet: fix duplicate import The `wallet` has already imported using `base`. --- lnwallet/btcwallet/btcwallet.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lnwallet/btcwallet/btcwallet.go b/lnwallet/btcwallet/btcwallet.go index 455d79ee0..32497a5ca 100644 --- a/lnwallet/btcwallet/btcwallet.go +++ b/lnwallet/btcwallet/btcwallet.go @@ -19,7 +19,6 @@ import ( "github.com/btcsuite/btcd/wire" "github.com/btcsuite/btcwallet/chain" "github.com/btcsuite/btcwallet/waddrmgr" - "github.com/btcsuite/btcwallet/wallet" base "github.com/btcsuite/btcwallet/wallet" "github.com/btcsuite/btcwallet/wallet/txauthor" "github.com/btcsuite/btcwallet/wallet/txrules" @@ -981,11 +980,11 @@ func (b *BtcWallet) CreateSimpleTx(inputs fn.Set[wire.OutPoint], } // Add the optional inputs to the transaction. - optFunc := wallet.WithCustomSelectUtxos(inputs.ToSlice()) + optFunc := base.WithCustomSelectUtxos(inputs.ToSlice()) return b.wallet.CreateSimpleTx( nil, defaultAccount, outputs, minConfs, feeSatPerKB, - strategy, dryRun, []wallet.TxCreateOption{optFunc}..., + strategy, dryRun, []base.TxCreateOption{optFunc}..., ) }