Remove unnecessary conversion

This commit is contained in:
Christoph Otter
2024-02-15 14:42:07 +01:00
parent 59848968ea
commit 6d7c91c145

View File

@@ -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