Skip to content

fix: key length check in decodeMerge#3796

Closed
ChALkeR wants to merge 1 commit intosolana-foundation:maintenance/v1.xfrom
ChALkeR:patch-2
Closed

fix: key length check in decodeMerge#3796
ChALkeR wants to merge 1 commit intosolana-foundation:maintenance/v1.xfrom
ChALkeR:patch-2

Conversation

@ChALkeR
Copy link
Copy Markdown

@ChALkeR ChALkeR commented Apr 6, 2026

Merge builds with 5 keys:

keys: [
{pubkey: stakePubkey, isSigner: false, isWritable: true},
{pubkey: sourceStakePubKey, isSigner: false, isWritable: true},
{pubkey: SYSVAR_CLOCK_PUBKEY, isSigner: false, isWritable: false},
{
pubkey: SYSVAR_STAKE_HISTORY_PUBKEY,
isSigner: false,
isWritable: false,
},
{pubkey: authorizedPubkey, isSigner: true, isWritable: false},
],

See also instruction.keys[4].pubkey access when throws when there are less than 5 keys

@ChALkeR ChALkeR marked this pull request as draft April 6, 2026 01:47
@ChALkeR ChALkeR marked this pull request as ready for review April 6, 2026 01:49
@github-actions github-actions Bot added the stale label Apr 20, 2026
@github-actions github-actions Bot closed this Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant