From b80f411b936443b87e5da832e434b8677108955f Mon Sep 17 00:00:00 2001 From: Chengcheng Zhang <943420582@qq.com> Date: Fri, 27 Sep 2019 21:13:51 +0800 Subject: [PATCH] update --- cmd/swap/commands.go | 3 +-- cmd/swap/main.go | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/swap/commands.go b/cmd/swap/commands.go index 6fab7bd..a0725e5 100644 --- a/cmd/swap/commands.go +++ b/cmd/swap/commands.go @@ -65,8 +65,7 @@ func init() { // build deploy contract tx buildTxCmd.PersistentFlags().StringVar(&ip, "ip", "127.0.0.1", "network address") - buildTxCmd.PersistentFlags().StringVar(&port, "port", "9888", "network port") - + buildTxCmd.PersistentFlags().StringVar(&port, "port", "3000", "network port") } var ( diff --git a/cmd/swap/main.go b/cmd/swap/main.go index c9b02f1..0ab7f0b 100644 --- a/cmd/swap/main.go +++ b/cmd/swap/main.go @@ -25,6 +25,7 @@ func main() { swapCmd.AddCommand(callHTLCCmd) swapCmd.AddCommand(cancelHTLCCmd) swapCmd.AddCommand(equityCmd) + swapCmd.AddCommand(buildTxCmd) if err := swapCmd.Execute(); err != nil { os.Exit(0) } -- 2.11.0