From 8c372ab37ff29b70a221740db8b5cc161f5358c0 Mon Sep 17 00:00:00 2001 From: Gurjot Date: Sat, 29 Oct 2022 13:31:11 -0400 Subject: [PATCH] fix client name --- btcclient/client_wallet.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/btcclient/client_wallet.go b/btcclient/client_wallet.go index 18c385e3..78b6adcc 100644 --- a/btcclient/client_wallet.go +++ b/btcclient/client_wallet.go @@ -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 } @@ -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 }