From c2924795adf521a4e42300595f7bc14756b753ce Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 10 Mar 2020 10:56:46 +0300 Subject: [PATCH] cli: fix a bug in `wallet claim` getclaimable RPC expects address as a 1-st argument. --- cli/wallet/wallet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {