Skip to content

Commit

Permalink
fix client name
Browse files Browse the repository at this point in the history
  • Loading branch information
gusin13 committed Oct 29, 2022
1 parent 724d910 commit 8c372ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions btcclient/client_wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ func NewWallet(cfg *config.BTCConfig) (*Client, error) {
return wallet, nil
}

func (cli *Client) loadWallet(name string) error {
backend, err := cli.BackendVersion()
func (c *Client) loadWallet(name string) error {
backend, err := c.BackendVersion()
if err != nil {
return err
}
Expand All @@ -58,7 +58,7 @@ func (cli *Client) loadWallet(name string) error {
log.Infof("BTC backend is zmq")

// this is for zmq
res, err := cli.Client.LoadWallet(name)
res, err := c.Client.LoadWallet(name)
if err != nil {
return err
}
Expand Down

0 comments on commit 8c372ab

Please sign in to comment.