mirror of
https://github.com/LBRYFoundation/lbcwallet.git
synced 2025-09-04 04:45:12 +00:00
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.
|
// error is returned to the frontend.
|
||||||
func GetNewAddress(frontend chan []byte, icmd btcjson.Cmd) {
|
func GetNewAddress(frontend chan []byte, icmd btcjson.Cmd) {
|
||||||
// Type assert icmd to access parameters.
|
// Type assert icmd to access parameters.
|
||||||
cmd, ok := icmd.(*btcjson.GetAddressesByAccountCmd)
|
cmd, ok := icmd.(*btcjson.GetNewAddressCmd)
|
||||||
if !ok {
|
if !ok {
|
||||||
ReplyError(frontend, icmd.Id(), &btcjson.ErrInternal)
|
ReplyError(frontend, icmd.Id(), &btcjson.ErrInternal)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue