From 8e9f1e7a2b2aeea5756be9d4ea757168a1d60ba8 Mon Sep 17 00:00:00 2001 From: David Leng Date: Sat, 31 Aug 2024 05:40:53 +0800 Subject: [PATCH] cli: Fix template code shouldn't escape (#3210) --- CHANGELOG.md | 1 + cli/src/rust_template.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f097b395f0..3b834dbc73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,6 +64,7 @@ The minor version will be incremented upon a breaking change and the patch versi - ts: Improve error message of unsupported `view` method ([#3177](https://github.com/coral-xyz/anchor/pull/3177)). - idl: Fix panicking on tests ([#3197](https://github.com/coral-xyz/anchor/pull/3197)). - lang: Remove `arrayref` dependency ([#3201](https://github.com/coral-xyz/anchor/pull/3201)). +- cli: Fix template code shouldn't escape ([#3210](https://github.com/coral-xyz/anchor/pull/3210)). ### Breaking diff --git a/cli/src/rust_template.rs b/cli/src/rust_template.rs index efea3b360d..c2e643bcc0 100644 --- a/cli/src/rust_template.rs +++ b/cli/src/rust_template.rs @@ -143,7 +143,7 @@ pub use initialize::*; pub struct Initialize {} pub fn handler(ctx: Context) -> Result<()> { - msg!("Greetings from: {{:?}}", ctx.program_id); + msg!("Greetings from: {:?}", ctx.program_id); Ok(()) } "#