Commit 8af8e65f authored by linj's avatar linj

fix

parent 32bffbbb
......@@ -480,7 +480,7 @@ func CreateRawTokenMintTxCmd() *cobra.Command {
}
func addTokenMintFlags(cmd *cobra.Command) {
cmd.Flags().StringP("symbol", "a", "", "token symbol")
cmd.Flags().StringP("symbol", "s", "", "token symbol")
cmd.MarkFlagRequired("symbol")
cmd.Flags().Float64P("amount", "a", 0, "amount of mintage")
......@@ -492,7 +492,7 @@ func addTokenMintFlags(cmd *cobra.Command) {
func tokenMint(cmd *cobra.Command, args []string) {
rpcLaddr, _ := cmd.Flags().GetString("rpc_laddr")
symbol, _ := cmd.Flags().GetString("symbol")
amount, _ := cmd.Flags().GetFloat64("owner_addr")
amount, _ := cmd.Flags().GetFloat64("amount")
params := &tokenty.TokenMint{
Symbol: symbol,
......
......@@ -57,7 +57,7 @@ func (t *TokenType) GetTypeMap() map[string]int32 {
"TokenFinishCreate": TokenActionFinishCreate,
"TokenRevokeCreate": TokenActionRevokeCreate,
"TransferToExec": TokenActionTransferToExec,
"Mint": TokenActionMint,
"TokenMint": TokenActionMint,
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment