mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-29 16:38:39 +00:00
Fix typo in command name getaddressesbyaccount.
Caught by jrick@
This commit is contained in:
parent
10542e0573
commit
39cef5e76a
@ -209,7 +209,7 @@ func CreateMessage(message string, args ...interface{}) ([]byte, error) {
|
||||
// One required string
|
||||
case "backupwallet", "decoderawtransaction", "dumpprivkey",
|
||||
"encryptwallet", "getaccount", "getaccountaddress",
|
||||
"getaddressbyaccount", "getblock",
|
||||
"getaddressesbyaccount", "getblock",
|
||||
"gettransaction", "sendrawtransaction", "validateaddress":
|
||||
if len(args) != 1 {
|
||||
err = fmt.Errorf("%s requires one argument", message)
|
||||
@ -708,7 +708,7 @@ func RpcCommand(user string, password string, server string, message []byte) (Re
|
||||
}
|
||||
resp, err := jsonRpcSend(user, password, server, message)
|
||||
if err != nil {
|
||||
err := fmt.Errorf("Error sending json message: "+err.Error())
|
||||
err := fmt.Errorf("Error sending json message: " + err.Error())
|
||||
return result, err
|
||||
}
|
||||
body, err := GetRaw(resp.Body)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user