cli: fix a bug in wallet claim

getclaimable RPC expects address as a 1-st argument.
This commit is contained in:
Evgenii Stratonikov 2020-03-10 10:56:46 +03:00
parent 97131683d8
commit c2924795ad

View file

@ -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 {