Skip to content

Commit 096822b

Browse files
committed
refactor: remove duplicate package import
Signed-off-by: zjumathcode <pai314159@2980.com>
1 parent c0ec378 commit 096822b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

onchain/liquid.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"github.com/elementsproject/peerswap/swap"
2020

2121
"github.com/vulpemventures/go-elements/address"
22-
address2 "github.com/vulpemventures/go-elements/address"
2322
"github.com/vulpemventures/go-elements/elementsutil"
2423
"github.com/vulpemventures/go-elements/network"
2524
"github.com/vulpemventures/go-elements/payment"
@@ -505,7 +504,7 @@ func (b *LiquidOnChain) GetOutputScript(params *swap.OpeningParams) ([]byte, err
505504
if err != nil {
506505
return nil, err
507506
}
508-
wantBytes, err := address2.ToOutputScript(wantAddr)
507+
wantBytes, err := address.ToOutputScript(wantAddr)
509508
if err != nil {
510509
return nil, err
511510
}
@@ -517,7 +516,7 @@ func (l *LiquidOnChain) FindVout(outputs []*transaction.TxOutput, redeemScript [
517516
if err != nil {
518517
return 0, err
519518
}
520-
wantBytes, err := address2.ToOutputScript(wantAddr)
519+
wantBytes, err := address.ToOutputScript(wantAddr)
521520
if err != nil {
522521
return 0, err
523522
}

0 commit comments

Comments
 (0)