Closed
Description
opened on May 5, 2022
Juno seems to have sent funds to a tx hash: https://www.coindesk.com/tech/2022/05/05/typo-moves-36m-in-seized-juno-tokens-to-wrong-wallet/
It looks like they converted a 64-byte tx hash to an address: https://github.com/CosmosContracts/juno/blob/v4.0.0/app/upgrade/upgrade_handler.go#L17-L21
Addresses are 20 bytes, while this thing is 32 bytes. Can we get AccAddressFromHex to panic if the address is not the right length?
I know there is some work to allow longer addresses, but maybe it can still be configured somehow to prevent errors like this ?
Metadata
Assignees
Labels
No labels
Activity