Fix slice index for parameter.
This commit is contained in:
parent
e321b6bdc7
commit
e745fffb83
1 changed files with 1 additions and 1 deletions
2
cmds.go
2
cmds.go
|
@ -133,7 +133,7 @@ func NewExportWatchingWalletCmd(id interface{}, optArgs ...interface{}) (*Export
|
|||
account = a
|
||||
}
|
||||
if len(optArgs) > 1 {
|
||||
b, ok := optArgs[0].(bool)
|
||||
b, ok := optArgs[1].(bool)
|
||||
if !ok {
|
||||
return nil, errors.New("second optarg zip must be a boolean")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue