From b7aec7f7a1d5e92dd0504733836dd61f68215690 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Tue, 12 Nov 2013 12:40:20 -0500 Subject: [PATCH] Type assert GetNewAddressCmd correctly. --- cmdmgr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdmgr.go b/cmdmgr.go index a403342..bce41ed 100644 --- a/cmdmgr.go +++ b/cmdmgr.go @@ -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