From 7dfd558027a49c2104ca92b25541ee43ad3cdf4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=BF=AA?= Date: Tue, 19 Jan 2021 15:12:02 +0800 Subject: [PATCH 1/2] update GetCmdIssueDenom to allow schema flag be file path --- modules/nft/client/cli/tx.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/nft/client/cli/tx.go b/modules/nft/client/cli/tx.go index 0effb7ea..b1d78b93 100644 --- a/modules/nft/client/cli/tx.go +++ b/modules/nft/client/cli/tx.go @@ -2,6 +2,7 @@ package cli import ( "fmt" + "io/ioutil" "strings" "github.com/spf13/cobra" @@ -65,6 +66,10 @@ func GetCmdIssueDenom() *cobra.Command { if err != nil { return err } + optionsContent, err := ioutil.ReadFile(schema) + if err == nil { + schema = string(optionsContent) + } msg := types.NewMsgIssueDenom( args[0], From 79e12e21a9ca52711004dec3690bfe6841fb57b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=BF=AA?= Date: Tue, 19 Jan 2021 15:57:28 +0800 Subject: [PATCH 2/2] update schema flag --- modules/nft/client/cli/tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nft/client/cli/tx.go b/modules/nft/client/cli/tx.go index b1d78b93..195d8d2d 100644 --- a/modules/nft/client/cli/tx.go +++ b/modules/nft/client/cli/tx.go @@ -46,7 +46,7 @@ func GetCmdIssueDenom() *cobra.Command { "$ %s tx nft issue "+ "--from= "+ "--name= "+ - "--schema= "+ + "--schema= "+ "--chain-id= "+ "--fees=", version.AppName,