From 6d7c91c145c966c0c39118bf4e1327dfe2966619 Mon Sep 17 00:00:00 2001 From: Christoph Otter Date: Thu, 15 Feb 2024 14:42:07 +0100 Subject: [PATCH] Remove unnecessary conversion --- x/wasm/keeper/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/wasm/keeper/api.go b/x/wasm/keeper/api.go index f774b042e8..ed547b1fef 100644 --- a/x/wasm/keeper/api.go +++ b/x/wasm/keeper/api.go @@ -51,7 +51,7 @@ func validateAddress(human string) (uint64, error) { return costValidate, err } // AccAddressFromBech32 already calls VerifyAddressFormat, so we can just humanize and compare - if sdk.AccAddress(canonicalized).String() != human { + if canonicalized.String() != human { return costValidate, errors.New("address not normalized") } return costValidate, err