diff --git a/basics/pyth/anchor-v1/CHANGELOG.md b/basics/pyth/anchor-v1/CHANGELOG.md index 4f1163881..a5f98ba93 100644 --- a/basics/pyth/anchor-v1/CHANGELOG.md +++ b/basics/pyth/anchor-v1/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 2026-09-24 + +### Changed + +- Renamed the `#[program]` module from `anchor_test` to `pythexample`, matching + the crate. Anchor names the generated IDL after the module, so the IDL was + written to `target/idl/anchor_test.json`; Surfpool 1.6 looks for + `target/idl/pythexample.json` when it deploys the program at the start of + `anchor test`, and exited with `Runbook execution failed` before any test ran. + ## 2026-07-07 Added this changelog. Changes prior to this date were tracked in git history only. diff --git a/basics/pyth/anchor-v1/programs/pythexample/src/lib.rs b/basics/pyth/anchor-v1/programs/pythexample/src/lib.rs index 013b6882e..7db83d281 100644 --- a/basics/pyth/anchor-v1/programs/pythexample/src/lib.rs +++ b/basics/pyth/anchor-v1/programs/pythexample/src/lib.rs @@ -21,7 +21,7 @@ pub enum PythExampleError { } #[program] -pub mod anchor_test { +pub mod pythexample { use super::*; pub fn read_price(context: Context) -> Result<()> { diff --git a/basics/pyth/anchor/CHANGELOG.md b/basics/pyth/anchor/CHANGELOG.md index 4f1163881..07222d5e2 100644 --- a/basics/pyth/anchor/CHANGELOG.md +++ b/basics/pyth/anchor/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 2026-09-24 + +### Changed + +- Renamed the `#[program]` module from `anchor_test` to `pythexample`, matching + the crate and the Anchor v1 copy, so the generated IDL is named after the + program. + ## 2026-07-07 Added this changelog. Changes prior to this date were tracked in git history only. diff --git a/basics/pyth/anchor/programs/pythexample/src/lib.rs b/basics/pyth/anchor/programs/pythexample/src/lib.rs index fe2911fc6..9b39240e7 100644 --- a/basics/pyth/anchor/programs/pythexample/src/lib.rs +++ b/basics/pyth/anchor/programs/pythexample/src/lib.rs @@ -22,7 +22,7 @@ pub enum PythExampleError { } #[program] -pub mod anchor_test { +pub mod pythexample { use super::*; pub fn read_price(context: &mut Context) -> Result<()> {