-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
token-js: added an e2e test for transferring using a mint with a transfer hook extension #5138
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wjthieme
force-pushed
the
wjthieme-patch-4
branch
3 times, most recently
from
August 30, 2023 06:39
940a096
to
2d2406d
Compare
wjthieme
force-pushed
the
wjthieme-patch-4
branch
from
August 31, 2023 06:30
0c93dee
to
0b6c92c
Compare
joncinque
reviewed
Sep 1, 2023
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.
The test itself looks great! Just a few other little things to address, we should be able to get this in soon
joncinque
approved these changes
Sep 1, 2023
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.
thlorenz
added a commit
to ironforge-cloud/solana-program-library
that referenced
this pull request
Sep 4, 2023
* master: (719 commits) release: Bump token-2022 and all dependencies (solana-labs#5189) SPL errors from hashes (solana-labs#5169) stake-pool: Add comments about unnecessary ownership checks (HAL-01) (solana-labs#5084) stake-pool: Enforce that pool mint uses 9 decimal places (HAL-03) (solana-labs#5085) build(deps-dev): bump tsx from 3.12.7 to 3.12.8 in /single-pool/js (solana-labs#5188) account-compression: Fixup sdk doc deployment (solana-labs#5187) token-js: renamed `getExtraAccountMetaAccount` to `getExtraAccountMetaAddress` (solana-labs#5186) token-js: added an e2e test for transferring using a mint with a transfer hook extension (solana-labs#5138) Serde optional dependencies clean-up (solana-labs#5181) build(deps): bump chrono from 0.4.27 to 0.4.28 (solana-labs#5180) stake-pool: Use unaligned types for safe pointer cast (solana-labs#5179) spl-pod: make code docs more explicit (solana-labs#5178) token-js: added extra account resolution for transfer hook extension (solana-labs#5112) Fix incorrect code doc (solana-labs#5177) Move Pod types to separate library (solana-labs#5119) build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.4.1 to 6.5.0 in /memo/js (solana-labs#5176) build(deps): bump chrono from 0.4.26 to 0.4.27 (solana-labs#5171) build(deps-dev): bump prettier from 3.0.2 to 3.0.3 in /token-swap/js (solana-labs#5174) build(deps-dev): bump prettier from 3.0.2 to 3.0.3 in /token/js (solana-labs#5172) build(deps-dev): bump prettier from 3.0.2 to 3.0.3 in /token-lending/js (solana-labs#5173) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
resolves #5128
blocked by #5112Added afixed in token-js: added extra account resolution for transfer hook extension #5112getExtraAccountMetaAccount
helper function.Fixed a bug inwasn't actually a bug :)transfer-hook-example
where no lamports were transferred to the extraAccountMeta account in the initialize instruction causing it to not be rent-exempt.State encode/decode for transfer hooks has become a little bit tricky as there are now multiple structs that require each other.fixed in token-js: added extra account resolution for transfer hook extension #5112ExtraAccountMeta
is an individual extra account meta,ExtraAccountMetaList
is a PodSlice of ExtraAccountMeta andExtraAccountMetaAccountData
which is the actual data inside the extraAccountMeta data account which apparently wrapsExtraAccountMetaList
in a tlv. Any suggestions on naming/structure would be appreciated.Had to add the extraAccountMeta and transferHookProgram accounts tofixed in token-js: added extra account resolution for transfer hook extension #5112addExtraAccountsToInstruction
as they were still missing.Introducing solana-bankrun as described in the issue for just this single test felt a little bit out of place for this PR so I left that part out.