mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-29 09:22:32 +00:00
Fix slice index for parameter.
This commit is contained in:
parent
e321b6bdc7
commit
e745fffb83
2
cmds.go
2
cmds.go
@ -133,7 +133,7 @@ func NewExportWatchingWalletCmd(id interface{}, optArgs ...interface{}) (*Export
|
|||||||
account = a
|
account = a
|
||||||
}
|
}
|
||||||
if len(optArgs) > 1 {
|
if len(optArgs) > 1 {
|
||||||
b, ok := optArgs[0].(bool)
|
b, ok := optArgs[1].(bool)
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil, errors.New("second optarg zip must be a boolean")
|
return nil, errors.New("second optarg zip must be a boolean")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user