Skip to content

Commit

Permalink
fixed btc chain configuration again
Browse files Browse the repository at this point in the history
  • Loading branch information
slbmax committed Feb 21, 2025
1 parent 6acdbc4 commit 7efc9a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/bridge/chains/btc.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ func (c Chain) Bitcoin() Bitcoin {
panic("invalid network")
}

if err := figure.Out(&chain.Receivers).FromInterface(c.BridgeAddresses).With(btcClientHook).Please(); err != nil {
panic(errors.Wrap(err, "failed to decode bitcoin receivers"))
}
if err := figure.Out(&chain.Rpc).FromInterface(c.Rpc).With(bitcoinAddrHook(chain.Params)).Please(); err != nil {
if err := figure.Out(&chain.Rpc).FromInterface(c.Rpc).With(btcClientHook).Please(); err != nil {
panic(errors.Wrap(err, "failed to init bitcoin chain rpc"))
}
if err := figure.Out(&chain.Receivers).FromInterface(c.BridgeAddresses).With(bitcoinAddrHook(chain.Params)).Please(); err != nil {
panic(errors.Wrap(err, "failed to decode bitcoin receivers"))
}

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

0 comments on commit 7efc9a8

Please sign in to comment.