From 3ce8be1a0d5b3d8a51eb8ff2dd44b352811f9cfc Mon Sep 17 00:00:00 2001 From: Anh Minh <1phamminh0811@gmail.com> Date: Thu, 23 May 2024 15:15:58 +0700 Subject: [PATCH] revert the verify contract length --- cmd/terrad/root.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/terrad/root.go b/cmd/terrad/root.go index 4f713675f..19afcdae8 100644 --- a/cmd/terrad/root.go +++ b/cmd/terrad/root.go @@ -45,6 +45,7 @@ import ( "github.com/CosmWasm/wasmd/x/wasm" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" + wasmtypes "github.com/CosmWasm/wasmd/x/wasm/types" ) // NewRootCmd creates a new root command for terrad. It is called once in the @@ -58,6 +59,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { sdkConfig.SetBech32PrefixForAccount(core.Bech32PrefixAccAddr, core.Bech32PrefixAccPub) sdkConfig.SetBech32PrefixForValidator(core.Bech32PrefixValAddr, core.Bech32PrefixValPub) sdkConfig.SetBech32PrefixForConsensusNode(core.Bech32PrefixConsAddr, core.Bech32PrefixConsPub) + sdkConfig.SetAddressVerifier(wasmtypes.VerifyAddressLen()) sdkConfig.Seal() initClientCtx := client.Context{}.