-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(wallet) sending community tokens doesn't work #14126
Conversation
Jenkins BuildsClick to see older builds (16)
|
7e5c205
to
2985068
Compare
37efaca
to
721b72b
Compare
d9a0f46
to
dd1db75
Compare
The contract address is not resolved for the community tokens because of symbol usage to identify assets. The symbol is not resolved by `getTokenBySymbolByTokensKey`. This fix changes from using symbol to always using assetKey to identify the token for all non-native and non-collectibles transfers. Closes #14074
dd1db75
to
48c0507
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's still some conditions between the sendType
and what we expect asset
and assetKey
to be that are not reflected in the code, but this is a big improvement vs what we had. That should perhaps be part of a bigger rework, split what's common and what's different for each case into smaller, separate functions.
Please test this with ETH, ERC20, ERC721 and ERC1155 transfers.
I could validate that sending all types work after including fixes from here: status-im/status-go#5001 The PR is still blocked by the Windows CI that fails while fetching git submodules, waiting for Infra team to have the availability to fix this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
Closes #14074
The contract address is not resolved for the community tokens because of symbol usage which is not resolved by
getTokenBySymbolByTokensKey
.This change switched to always using
tokensKey
to identify the token for all non-native transfers. Basically thetransferToken
always requires token which guarantees a valid token address.Also remove token lookup redundant code.