From cee8d27baea648bf4063a00ee463b9eb25e4f5c1 Mon Sep 17 00:00:00 2001 From: Vritra4 Date: Thu, 2 Nov 2023 19:42:28 +0900 Subject: [PATCH] fix `initiad q move resource` --- x/move/client/cli/query.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x/move/client/cli/query.go b/x/move/client/cli/query.go index cc3b8761..79297aa7 100644 --- a/x/move/client/cli/query.go +++ b/x/move/client/cli/query.go @@ -12,6 +12,7 @@ import ( "github.com/spf13/cobra" "github.com/initia-labs/initia/x/move/types" + vmapi "github.com/initia-labs/initiavm/api" ) func GetQueryCmd() *cobra.Command { @@ -124,7 +125,8 @@ func GetCmdResource() *cobra.Command { return err } - if err := sdk.ValidateDenom(args[1]); err != nil { + _, err = vmapi.ParseStructTag(args[1]) + if err != nil { return err }