Skip to content

Commit 69b426f

Browse files
committed
✨ Add strings to the template
1 parent 873d5ba commit 69b426f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/src/rust_template.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ pub mod {} {{
5353
5454
#[account]
5555
#[bolt_account(component_id = "{}")]
56-
#[derive(Copy)]
5756
pub struct {} {{
5857
pub x: i64,
5958
pub y: i64,
6059
pub z: i64,
60+
#[max_len(20)]
61+
pub description: String,
6162
}}
6263
"#,
6364
anchor_cli::rust_template::get_or_create_program_id(name),
@@ -104,6 +105,8 @@ pub struct Position {{
104105
pub x: i64,
105106
pub y: i64,
106107
pub z: i64,
108+
#[max_len(20)]
109+
pub description: String,
107110
}}
108111
"#,
109112
anchor_cli::rust_template::get_or_create_program_id(name),

0 commit comments

Comments
 (0)