From e54d273ad3bea5c951c49d95e350494712a99f2b Mon Sep 17 00:00:00 2001 From: tarumi Date: Thu, 2 Nov 2023 14:00:41 +0100 Subject: [PATCH] fix compilation err --- x/registry/client/cli/tx_extend_top_level_domain_expiration.go | 2 +- x/registry/types/message_extend_top_level_domain_expiration.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/registry/client/cli/tx_extend_top_level_domain_expiration.go b/x/registry/client/cli/tx_extend_top_level_domain_expiration.go index 9c20f7c4..183ed8f3 100644 --- a/x/registry/client/cli/tx_extend_top_level_domain_expiration.go +++ b/x/registry/client/cli/tx_extend_top_level_domain_expiration.go @@ -20,7 +20,7 @@ func CmdExtendTopLevelDomainExpiration() *cobra.Command { Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) (err error) { argName := args[0] - argRegistrationPeriodInYear, err := cast.ToInt32E(args[1]) + argRegistrationPeriodInYear, err := cast.ToInt64E(args[1]) if err != nil { return err } diff --git a/x/registry/types/message_extend_top_level_domain_expiration.go b/x/registry/types/message_extend_top_level_domain_expiration.go index 8397c74d..b743c421 100644 --- a/x/registry/types/message_extend_top_level_domain_expiration.go +++ b/x/registry/types/message_extend_top_level_domain_expiration.go @@ -9,7 +9,7 @@ const TypeMsgExtendTopLevelDomainExpiration = "extend_top_level_domain_expiratio var _ sdk.Msg = &MsgExtendTopLevelDomainExpiration{} -func NewMsgExtendTopLevelDomainExpiration(creator string, name string, registrationPeriodInYear int32) *MsgExtendTopLevelDomainExpiration { +func NewMsgExtendTopLevelDomainExpiration(creator string, name string, registrationPeriodInYear int64) *MsgExtendTopLevelDomainExpiration { return &MsgExtendTopLevelDomainExpiration{ Creator: creator, Name: name,