program-examples
program-examples copied to clipboard
native/pinocchio examples: deploy script points at program.so, which the build never produces
The deploy npm script and cicd.sh in the single-program native and Pinocchio examples run:
solana program deploy ./program/target/so/program.so
cargo build-sbf --sbf-out-dir=./program/target/so names the artifact after the crate (e.g. transfer_tokens_program.so), so program.so never exists and the documented deploy step fails with "No such file". CI doesn't run deploy, which is why it went unnoticed.
Proposed fix: deploy ./program/target/so/*.so, which resolves to the single artifact in each of these examples. Multi-program examples and the asm example are left alone. Implementation is ready in #702.