Commit 71c02eab authored by 袁兴强's avatar 袁兴强

update wasm command

parent 43571deb
...@@ -12,7 +12,7 @@ import ( ...@@ -12,7 +12,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
// TokenCmd token 命令行 // Cmd wasm 命令行
func Cmd() *cobra.Command { func Cmd() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "wasm", Use: "wasm",
...@@ -21,15 +21,15 @@ func Cmd() *cobra.Command { ...@@ -21,15 +21,15 @@ func Cmd() *cobra.Command {
} }
cmd.AddCommand( cmd.AddCommand(
CmdCheckContract(), cmdCheckContract(),
CmdCreateContract(), cmdCreateContract(),
CmdCallContract(), cmdCallContract(),
) )
return cmd return cmd
} }
func CmdCheckContract() *cobra.Command { func cmdCheckContract() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "check", Use: "check",
Short: "Check whether the contract with the given name exists or not.", Short: "Check whether the contract with the given name exists or not.",
...@@ -40,7 +40,7 @@ func CmdCheckContract() *cobra.Command { ...@@ -40,7 +40,7 @@ func CmdCheckContract() *cobra.Command {
return cmd return cmd
} }
func CmdCreateContract() *cobra.Command { func cmdCreateContract() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "create", Use: "create",
Short: "publish a new contract on chain33", Short: "publish a new contract on chain33",
...@@ -53,7 +53,7 @@ func CmdCreateContract() *cobra.Command { ...@@ -53,7 +53,7 @@ func CmdCreateContract() *cobra.Command {
return cmd return cmd
} }
func CmdCallContract() *cobra.Command { func cmdCallContract() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "call", Use: "call",
Short: "call contract on chain33", Short: "call contract on chain33",
......
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