From 51739ee9ad2571ed065188f8a2d414f0b9cf4de6 Mon Sep 17 00:00:00 2001 From: Alexander Bezobchuk Date: Sat, 11 Jul 2020 04:13:46 -0400 Subject: [PATCH] Fix Gas Flag Usage + CLI Flag APIs (#6685) * Use new APIs * fix usage * fix usage of gas flag * tests: TestParseGasSetting --- simd/cmd/genaccounts.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simd/cmd/genaccounts.go b/simd/cmd/genaccounts.go index 8cfefc18657d..d5b4ce67dcbe 100644 --- a/simd/cmd/genaccounts.go +++ b/simd/cmd/genaccounts.go @@ -161,6 +161,7 @@ contain valid denominations. Accounts may optionally be supplied with vesting pa cmd.Flags().String(flagVestingAmt, "", "amount of coins for vesting accounts") cmd.Flags().Int64(flagVestingStart, 0, "schedule start time (unix epoch) for vesting accounts") cmd.Flags().Int64(flagVestingEnd, 0, "schedule end time (unix epoch) for vesting accounts") + flags.AddQueryFlagsToCmd(cmd) - return flags.GetCommands(cmd)[0] + return cmd }