-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Wallet Extension Integration #28
Conversation
h0ngcha0
commented
Sep 6, 2022
- Picked Muchen's work for extension wallet integration
- Fixed some UI issues by updating the extension wallet
The test failed because of this: bufbuild/buf#1380, we need to update the |
Thanks for the fix! <3 |
06209d0
to
d076daa
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.
LGTM
return undefined | ||
const tokenAddress = toAlphContractAddress(tokenId) | ||
try { | ||
const group = await provider.addresses.getAddressesAddressGroup(tokenAddress) |
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 should be an utility function for this in web3
.
} catch (error) { | ||
console.log("failed to get alephium token info, error: " + error) | ||
return undefined | ||
} |
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.
This function is for testing purpose only right?
later we will read such information from a public repo token-list
.
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.
Yes, it's only for testing now, wormhole also has a repo for this: https://github.com/certusone/wormhole-networks.