Skip to content

[codex] fix transferTokenChecked account order#20

Merged
jpe7s merged 1 commit into
mainfrom
fix(token-transfer-checked-account-order)
Jun 24, 2026
Merged

[codex] fix transferTokenChecked account order#20
jpe7s merged 1 commit into
mainfrom
fix(token-transfer-checked-account-order)

Conversation

@fabiofederici

Copy link
Copy Markdown
Member

Summary

Fixes the account order passed by the GLAM Java SDK transferTokenChecked wrappers.

Root cause

GlamAccountClientImpl and GlamStagingAccountClientImpl passed glamProtocolProgram before cpiProgram to ExtSplProgram.tokenTransferChecked. The generated ExtSplProgram account order expects cpiProgram first, then glamProtocolProgram. The wrong order causes tokenTransferChecked simulation/execution to fail with InvalidProgramId.

Changes

  • Pass invokedTokenProgram.publicKey() before invokedProtocolProgram.publicKey() in GlamAccountClientImpl.
  • Apply the same order fix in GlamStagingAccountClientImpl.

Validation

  • ./gradlew build --no-daemon

@jpe7s jpe7s marked this pull request as ready for review June 24, 2026 14:49
@jpe7s jpe7s merged commit 91500e0 into main Jun 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants