diff --git a/cli/wallet/wallet.go b/cli/wallet/wallet.go index 1ad91810c..2e5aab42e 100644 --- a/cli/wallet/wallet.go +++ b/cli/wallet/wallet.go @@ -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 {