diff --git a/walletcontroller/client.go b/walletcontroller/client.go index 1e55518..65770f0 100644 --- a/walletcontroller/client.go +++ b/walletcontroller/client.go @@ -68,7 +68,7 @@ func NewRpcWalletControllerFromArgs( ) (*RpcWalletController, error) { connCfg := &rpcclient.ConnConfig{ - Host: rpcHostName(host, walletName), + Host: rpcHostURL(host, walletName), User: user, Pass: pass, DisableTLS: disableTls, @@ -100,7 +100,7 @@ func NewRpcWalletControllerFromArgs( }, nil } -func rpcHostName(host, walletName string) string { +func rpcHostURL(host, walletName string) string { if len(walletName) > 0 { return host + "/wallet/" + walletName }