trustwallet / wallet-core

Cross-platform, cross-blockchain wallet library.
https://developer.trustwallet.com/wallet-core
Apache License 2.0
2.86k stars 1.6k forks source link

[Solana]: Add a function for generating token addresses for the Token-2022 Program #4010

Closed 10gic closed 2 months ago

10gic commented 2 months ago

Description

There is a function to generate token addresses for the Token Program, but no function for generating token addresses for the Token-2022 Program. I added a support function to address this.

How to test

Run Rust, C++, Kotlin, Swift tests

Types of changes

Checklist

If you're adding a new blockchain

10gic commented 2 months ago

Hi @satoshiotomakan, I would greatly appreciate it if you could take the time to review this pull request.

10gic commented 2 months ago

Hi @satoshiotomakan, please let me know if there's anything else you would like me to adjust in the code. Thank you!

satoshiotomakan commented 2 months ago

Hi @10gic, just realized there is no test for TWSolanaAddressToken2022Address function in C++. Could you please add it along with the TWSolanaAddressDefaultTokenAddress

10gic commented 2 months ago

Hi @10gic, just realized there is no test for TWSolanaAddressToken2022Address function in C++. Could you please add it along with the TWSolanaAddressDefaultTokenAddress

Hi @satoshiotomakan, you are always meticulous. Thanks for the reminder, I have added it.

satoshiotomakan commented 2 months ago

@10gic, could I ask you to check your email? Looking forward to your reply