fix(main): Permit T22 tokens && Fix rent payer issue in wrapped message #26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the
src/componentsandsrc/hooksdirectories to improve the handling of token transactions and update the payer key for transactions. The most important changes are grouped by theme below:Update payer key in transaction messages:
src/components/ChangeUpgradeAuthorityInput.tsx: ChangedpayerKeyfromwallet.publicKeytonew PublicKey(vaultAddress).src/components/CreateProgramUpgradeInput.tsx: ChangedpayerKeyfromwallet.publicKeytonew PublicKey(vaultAddress).src/components/SendSolButton.tsx: ChangedpayerKeyfromwallet.publicKeytonew PublicKey(vaultAddress).src/components/SendTokensButton.tsx: ChangedpayerKeyfromwallet.publicKeytonew PublicKey(vaultAddress).Token transaction improvements:
src/components/SendTokensButton.tsx: AddedTOKEN_PROGRAM_IDto various token-related instructions and updated thegetAssociatedTokenAddressSyncandcreateTransferCheckedInstructioncalls to includeTOKEN_PROGRAM. [1] [2] [3]Import and usage updates:
src/hooks/useServices.tsx: Added imports forTOKEN_2022_PROGRAM_IDandTOKEN_PROGRAM_IDfrom@solana/spl-tokenand updated theuseGetTokenshook to fetch tokens from both program IDs. [1] [2]src/routes/programs.tsx: Removed unused importsclusterApiUrlandmultisigfrom@sqds/multisig.Minor fixes:
src/components/TokenList.tsx: Fixed the conditional rendering logic for the tokens list to usetokens.lengthinstead oftokens.value.length.src/components/TokenList.tsx: Removed an unused import statement.