Skip to content

Commit

Permalink
Remove unnecessary conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Feb 15, 2024
1 parent 5984896 commit 6d7c91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/wasm/keeper/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d7c91c

Please sign in to comment.