mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
Unmarshal correct lockunspent outpoints parameter.
This commit is contained in:
parent
370899e1fc
commit
00874b6ec2
@ -4905,7 +4905,7 @@ func (cmd *LockUnspentCmd) UnmarshalJSON(b []byte) error {
|
||||
optArgs := make([][]TransactionInput, 0, 1)
|
||||
if len(r.Params) > 1 {
|
||||
var transactions []TransactionInput
|
||||
if err := json.Unmarshal(r.Params[0], &transactions); err != nil {
|
||||
if err := json.Unmarshal(r.Params[1], &transactions); err != nil {
|
||||
return fmt.Errorf("second optional parameter 'transactions' "+
|
||||
"must be a JSON array of transaction input JSON objects: %v", err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user