Reproduction for buildCreateTokenTransaction bug with TOKEN_PROGRAM_ADDRESS.

reproduction for the bug caught when using the buildCreateTokenTransaction function.

Example error:

Installation

To install the dependencies for this project, run:

bun install

Bug Reproduction

To run the bug reproduction:

bun run ./src/commands/create-spl-token/create-spl-token.failed.with-builder.ts --metadataUri=https://arweave.net/-Omj9t4ligrdhloerV618tHv19unECP_9zi9e3Taqyw --url=https://api.devnet.solana.com --keypair=.keypair/signer.json --name="Sonic SVM Test" --symbol=SONIC_Test

Success Case (Control)

To run the bug reproduction:

bun run ./src/commands/create-spl-token/create-spl-token.successful.ts --metadataUri=https://arweave.net/-Omj9t4ligrdhloerV618tHv19unECP_9zi9e3Taqyw --url=https://api.devnet.solana.com --keypair=.keypair/signer.json --name="Sonic SVM Test" --symbol=SONIC_Test

You may replace the metadata CLI args as you wish.


This project was created using bun init in bun v1.1.18. Bun is a fast all-in-one JavaScript runtime.