Type assert GetNewAddressCmd correctly.
This commit is contained in:
parent
e761884c53
commit
b7aec7f7a1
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ func NotifyBalances(reply chan []byte) {
|
|||
// error is returned to the frontend.
|
||||
func GetNewAddress(frontend chan []byte, icmd btcjson.Cmd) {
|
||||
// Type assert icmd to access parameters.
|
||||
cmd, ok := icmd.(*btcjson.GetAddressesByAccountCmd)
|
||||
cmd, ok := icmd.(*btcjson.GetNewAddressCmd)
|
||||
if !ok {
|
||||
ReplyError(frontend, icmd.Id(), &btcjson.ErrInternal)
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue