Skip to content

Minor corrections on the numbering of examples under examples_baremetal#28

Open
realCL-dev wants to merge 1 commit intoExtropyIO:mainfrom
realCL-dev:main
Open

Minor corrections on the numbering of examples under examples_baremetal#28
realCL-dev wants to merge 1 commit intoExtropyIO:mainfrom
realCL-dev:main

Conversation

@realCL-dev
Copy link

@realCL-dev realCL-dev commented Jun 25, 2025

Issue: Currently, under "examples_baremetal", example 3 is not available (or may have been permanently deleted). As such, running "npm run deploy:3" and "npm run call:3" would result in an error.

Minor changes proposed :

  1. Renamed example4-cpi directory to example3-cpi
  2. Renamed example5-compute to example4-compute
  3. Renamed example6-pda to example5-pda
  4. Updated the scripts in the package.json file as follows:
    "deploy:1": "solana program deploy ./examples_baremetal/target/deploy/helloworld.so",
    "call:1": "ts-node examples_baremetal/example1-helloworld/client/main.ts",
    "deploy:2": "solana program deploy ./examples_baremetal/target/deploy/counter.so",
    "call:2": "ts-node examples_baremetal/example2-counter/client/main.ts",
    "deploy:3": "solana program deploy ./examples_baremetal/target/deploy/cpi.so",
    "call:3": "ts-node examples_baremetal/example3-cpi/client/main.ts",
    "deploy:4": "solana program deploy ./examples_baremetal/target/deploy/compute.so",
    "call:4": "ts-node examples_baremetal/example4-compute/client/main.ts",
    "deploy:5": "solana program deploy ./examples_baremetal/target/deploy/pda.so",
    "call:5": "ts-node examples_baremetal/example5-pda/client/main.ts",

Note: With the above changes, "npm run deploy:x" and "npm run call:x" works naturally for x = {1, 2, 3, 4, 5}.

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.

1 participant