@@ -21,14 +21,14 @@ import (
21
21
var (
22
22
stake2RenewCmdUses = map [config.Language ]string {
23
23
config .English : "renew BUCKET_INDEX STAKE_DURATION [DATA] [--auto-restake]" +
24
- "[-s SIGNER] [-n NONCE] [-l GAS_LIMIT] [-p GAS_PRICE] [-P PASSWORD] [-y]" ,
25
- config .Chinese : "renew 桶索引 权益持续时间 [数据] [--auto-restake]" +
26
- "[-s 签署人] [-n NONCE] [-l GAS限制] [-p GAS价格] [-P 密码] [-y]" ,
24
+ " [-s SIGNER] [-n NONCE] [-l GAS_LIMIT] [-p GAS_PRICE] [-P PASSWORD] [-y]" ,
25
+ config .Chinese : "renew 票索引 投票持续时间 [数据] [--auto-restake]" +
26
+ " [-s 签署人] [-n NONCE] [-l GAS限制] [-p GAS价格] [-P 密码] [-y]" ,
27
27
}
28
28
29
29
stake2RenewCmdShorts = map [config.Language ]string {
30
- config .English : "renew bucket on IoTeX blockchain" ,
31
- config .Chinese : "更新IoTeX区块链上的存储桶 " ,
30
+ config .English : "Renew bucket on IoTeX blockchain" ,
31
+ config .Chinese : "更新IoTeX区块链上的投票 " ,
32
32
}
33
33
34
34
stake2RenewFlagAutoRestakeUsages = map [config.Language ]string {
38
38
)
39
39
40
40
// stake2RenewCmd represents the stake2 renew command
41
- var stake2RenewCmd = & cobra.Command {Use : config .TranslateInLang (stake2RenewCmdUses , config .UILanguage ),
41
+ var stake2RenewCmd = & cobra.Command {
42
+ Use : config .TranslateInLang (stake2RenewCmdUses , config .UILanguage ),
42
43
Short : config .TranslateInLang (stake2RenewCmdShorts , config .UILanguage ),
43
44
Args : cobra .RangeArgs (2 , 3 ),
44
45
RunE : func (cmd * cobra.Command , args []string ) error {
@@ -49,7 +50,8 @@ var stake2RenewCmd = &cobra.Command{Use: config.TranslateInLang(stake2RenewCmdUs
49
50
50
51
func init () {
51
52
registerWriteCommand (stake2RenewCmd )
52
- stake2RenewCmd .Flags ().BoolVar (& stake2AutoRestake , "auto-restake" , false , config .TranslateInLang (stake2RenewFlagAutoRestakeUsages , config .UILanguage ))
53
+ stake2RenewCmd .Flags ().BoolVar (& stake2AutoRestake , "auto-restake" , false ,
54
+ config .TranslateInLang (stake2RenewFlagAutoRestakeUsages , config .UILanguage ))
53
55
}
54
56
55
57
func stake2Renew (args []string ) error {
0 commit comments