You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now if blocked is cosmos1jhg0e7s6gn44tfc5k37kr04sznyhedtc9rzys5 and user_provided_address is cosmos1jhg0e7s6gn44tfc5k37kr04sznyhedtc9rzys5 the check works fine. But if the perfectly valid form COSMOS1JHG0E7S6GN44TFC5K37KR04SZNYHEDTC9RZYS5 is provided, this breaks.
I'm sure the example is bad here but I hope you get what I mean. Equality checkes between Addr and &str or String are just not safe.
The text was updated successfully, but these errors were encountered:
When one of the sides is not normalized you can get unintended results. E.g.
Now if
blocked
iscosmos1jhg0e7s6gn44tfc5k37kr04sznyhedtc9rzys5
anduser_provided_address
iscosmos1jhg0e7s6gn44tfc5k37kr04sznyhedtc9rzys5
the check works fine. But if the perfectly valid formCOSMOS1JHG0E7S6GN44TFC5K37KR04SZNYHEDTC9RZYS5
is provided, this breaks.I'm sure the example is bad here but I hope you get what I mean. Equality checkes between Addr and &str or String are just not safe.
The text was updated successfully, but these errors were encountered: