-
Notifications
You must be signed in to change notification settings - Fork 925
Add stackHeight
to the instruction type
#2866
Add stackHeight
to the instruction type
#2866
Conversation
🦋 Changeset detectedLatest commit: 3ebf596 The changes in this PR will be included in the next version bump. This PR includes changesets to release 37 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @steveluscher and the rest of your teammates on Graphite |
export const instructionConfig = [['accounts', KEYPATH_WILDCARD], ['programIdIndex'], ['stackHeight']]; | ||
export const innerInstructionsConfigs = [ | ||
['index'], | ||
...instructionConfig.map(c => ['instructions', KEYPATH_WILDCARD, ...c]), | ||
]; | ||
export const messageConfig = [ | ||
['addressTableLookups', KEYPATH_WILDCARD, 'writableIndexes', KEYPATH_WILDCARD], | ||
['addressTableLookups', KEYPATH_WILDCARD, 'readonlyIndexes', KEYPATH_WILDCARD], | ||
...instructionConfig.map(c => ['instructions', KEYPATH_WILDCARD, ...c]), | ||
['header', 'numReadonlySignedAccounts'], | ||
['header', 'numReadonlyUnsignedAccounts'], | ||
['header', 'numRequiredSignatures'], | ||
] as const; |
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.
Did a little compressing of the configuration that prevents bigint upcasts for certain values, while also adding stackHeight
to the list. Please go over with a fine-toothed comb in case I missed anything.
251f9ab
to
8c2dd82
Compare
8c2dd82
to
05a31bf
Compare
f1baa9e
to
5bb7d21
Compare
05a31bf
to
c5e569f
Compare
c5e569f
to
ef54325
Compare
['instructions', KEYPATH_WILDCARD, 'accounts', KEYPATH_WILDCARD], | ||
['instructions', KEYPATH_WILDCARD, 'programIdIndex'], | ||
['instructions', KEYPATH_WILDCARD, 'stackHeight'], |
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.
Would have DRY'd these up too, but using foo.map()
in this file at the top level would break tree-shakability.
ef54325
to
f7d6ec2
Compare
Merge activity
|
f7d6ec2
to
3ebf596
Compare
🎉 This PR is included in version 1.94.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up. |
See solana-labs/solana#28430