From 62fbbe4237836fc3b9c789fcf8e7467fd38a3e73 Mon Sep 17 00:00:00 2001 From: 0xmuralik Date: Tue, 8 Nov 2022 14:03:04 +0530 Subject: [PATCH] register interface --- x/nameservice/client/cli/query.go | 6 +++--- x/nameservice/client/cli/tx.go | 6 +++--- x/nameservice/types/codec.go | 6 ++++++ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/x/nameservice/client/cli/query.go b/x/nameservice/client/cli/query.go index fc7eb427..d7b888d5 100644 --- a/x/nameservice/client/cli/query.go +++ b/x/nameservice/client/cli/query.go @@ -14,14 +14,14 @@ import ( // GetQueryCmd returns the cli query commands for this module func GetQueryCmd() *cobra.Command { - bondQueryCmd := &cobra.Command{ + nameserviceQueryCmd := &cobra.Command{ Use: types.ModuleName, Short: "Querying commands for the nameservice module", DisableFlagParsing: true, SuggestionsMinimumDistance: 2, RunE: client.ValidateCmd, } - bondQueryCmd.AddCommand( + nameserviceQueryCmd.AddCommand( GetCmdWhoIs(), GetCmdResolve(), GetCmdLookupCRN(), @@ -34,7 +34,7 @@ func GetQueryCmd() *cobra.Command { GetCmdBalance(), GetCmdNames(), ) - return bondQueryCmd + return nameserviceQueryCmd } // GetCmdWhoIs queries a whois info for a name. diff --git a/x/nameservice/client/cli/tx.go b/x/nameservice/client/cli/tx.go index cde6dd53..332077be 100644 --- a/x/nameservice/client/cli/tx.go +++ b/x/nameservice/client/cli/tx.go @@ -17,7 +17,7 @@ import ( // NewTxCmd returns a root CLI command handler for all x/bond transaction commands. func NewTxCmd() *cobra.Command { - bondTxCmd := &cobra.Command{ + nameserviceTxCmd := &cobra.Command{ Use: types.ModuleName, Short: "nameservice transaction subcommands", DisableFlagParsing: true, @@ -25,7 +25,7 @@ func NewTxCmd() *cobra.Command { RunE: client.ValidateCmd, } - bondTxCmd.AddCommand( + nameserviceTxCmd.AddCommand( GetCmdSetRecord(), GetCmdRenewRecord(), GetCmdAssociateBond(), @@ -38,7 +38,7 @@ func NewTxCmd() *cobra.Command { GetCmdDeleteName(), ) - return bondTxCmd + return nameserviceTxCmd } // GetCmdSetRecord is the CLI command for creating/updating a record. diff --git a/x/nameservice/types/codec.go b/x/nameservice/types/codec.go index 7978ce8b..5b748fbd 100644 --- a/x/nameservice/types/codec.go +++ b/x/nameservice/types/codec.go @@ -44,6 +44,12 @@ func RegisterInterfaces(registry types.InterfaceRegistry) { (*Attributes)(nil), &ServiceProviderRegistration{}, ) + + registry.RegisterInterface( + "vulcanize.nameservice.v1beta1.WebsiteRegistrationRecord", + (*Attributes)(nil), + &WebsiteRegistrationRecord{}, + ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) }