mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
multi: always supply chain params when decoding addresses
This commit is contained in:
parent
ec40647147
commit
9a1b60b4be
8 changed files with 35 additions and 22 deletions
|
|
@ -44,7 +44,9 @@ func (s *swapClientServer) LoopOut(ctx context.Context,
|
|||
}
|
||||
} else {
|
||||
var err error
|
||||
sweepAddr, err = btcutil.DecodeAddress(in.Dest, nil)
|
||||
sweepAddr, err = btcutil.DecodeAddress(
|
||||
in.Dest, s.lnd.ChainParams,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("decode address: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue