Hey guys, thanks for your work!
Have a little question :)
Why you use Addr(which is a String actually) as a key in Maps? Here for example?
Here CosmWasm docs saying (and I agree):
This means that if message.signer is always the string address that signed
the transaction and I use it to look up your account balance, if this encoding
ever changed, then you lose access to your account. We clearly need
a stable identifier to work with internally.
It is possible for address string representation to change, so ideally we all (smart contracts dev) should use CanonicalAddr as a key for Maps.
So, Why?
Hey guys, thanks for your work!
Have a little question :)
Why you use
Addr(which is a String actually) as a key in Maps? Here for example?Here CosmWasm docs saying (and I agree):
It is possible for address string representation to change, so ideally we all (smart contracts dev) should use
CanonicalAddras a key for Maps.So, Why?