Skip to content

Commit 7efc9a8

Browse files
committed
fixed btc chain configuration again
1 parent 6acdbc4 commit 7efc9a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/bridge/chains/btc.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ func (c Chain) Bitcoin() Bitcoin {
3636
panic("invalid network")
3737
}
3838

39-
if err := figure.Out(&chain.Receivers).FromInterface(c.BridgeAddresses).With(btcClientHook).Please(); err != nil {
40-
panic(errors.Wrap(err, "failed to decode bitcoin receivers"))
41-
}
42-
if err := figure.Out(&chain.Rpc).FromInterface(c.Rpc).With(bitcoinAddrHook(chain.Params)).Please(); err != nil {
39+
if err := figure.Out(&chain.Rpc).FromInterface(c.Rpc).With(btcClientHook).Please(); err != nil {
4340
panic(errors.Wrap(err, "failed to init bitcoin chain rpc"))
4441
}
42+
if err := figure.Out(&chain.Receivers).FromInterface(c.BridgeAddresses).With(bitcoinAddrHook(chain.Params)).Please(); err != nil {
43+
panic(errors.Wrap(err, "failed to decode bitcoin receivers"))
44+
}
4545

4646
// ensuring wallet is properly configured
4747
_, err := chain.Rpc.Wallet.GetWalletInfo()

0 commit comments

Comments
 (0)