Skip to content

Commit

Permalink
cli: Fix template code shouldn't escape (#3210)
Browse files Browse the repository at this point in the history
  • Loading branch information
lak02 committed Aug 30, 2024
1 parent 5c67b04 commit 8e9f1e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion cli/src/rust_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ pub use initialize::*;
pub struct Initialize {}
pub fn handler(ctx: Context<Initialize>) -> Result<()> {
msg!("Greetings from: {{:?}}", ctx.program_id);
msg!("Greetings from: {:?}", ctx.program_id);
Ok(())
}
"#
Expand Down

0 comments on commit 8e9f1e7

Please sign in to comment.