cli: fix a bug in wallet claim
getclaimable RPC expects address as a 1-st argument.
This commit is contained in:
parent
97131683d8
commit
c2924795ad
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ func claimGas(ctx *cli.Context) error {
|
|||
if err != nil {
|
||||
return cli.NewExitError(err, 1)
|
||||
}
|
||||
info, err := c.GetClaimable(scriptHash.String())
|
||||
info, err := c.GetClaimable(addrFlag.String())
|
||||
if err != nil {
|
||||
return cli.NewExitError(err, 1)
|
||||
} else if info.Unclaimed == 0 || len(info.Spents) == 0 {
|
||||
|
|
Loading…
Reference in a new issue