Fix listtransactions optarg indexes.
This commit is contained in:
parent
d1570c5d87
commit
de9176b94f
1 changed files with 3 additions and 3 deletions
|
@ -227,13 +227,13 @@ func makeImportPrivKey(args []interface{}) (btcjson.Cmd, error) {
|
||||||
// listtransactions commands.
|
// listtransactions commands.
|
||||||
func makeListTransactions(args []interface{}) (btcjson.Cmd, error) {
|
func makeListTransactions(args []interface{}) (btcjson.Cmd, error) {
|
||||||
var optargs = make([]interface{}, 0, 3)
|
var optargs = make([]interface{}, 0, 3)
|
||||||
if len(args) > 1 {
|
if len(args) > 0 {
|
||||||
optargs = append(optargs, args[0].(string))
|
optargs = append(optargs, args[0].(string))
|
||||||
}
|
}
|
||||||
if len(args) > 2 {
|
if len(args) > 1 {
|
||||||
optargs = append(optargs, args[1].(int))
|
optargs = append(optargs, args[1].(int))
|
||||||
}
|
}
|
||||||
if len(args) > 3 {
|
if len(args) > 2 {
|
||||||
optargs = append(optargs, args[2].(int))
|
optargs = append(optargs, args[2].(int))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue