Skip to content

Commit d35af3a

Browse files
committed
♻️ Code Refactoring
1 parent 63c5751 commit d35af3a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Anchor.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ world = "WorLD15A7CrDwLcLy4fRqtaTb9fbd8o8iqiEMUDse2n"
2121
url = "https://api.apr.dev"
2222

2323
[provider]
24-
cluster = "devnet"
25-
wallet = "~/.config/solana/id.json"
24+
cluster = "localnet"
25+
wallet = "./tests/fixtures/provider.json"
2626

2727
[scripts]
2828
test = "yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/bolt.ts"

examples/component-velocity/src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,14 @@ pub struct Initialize<'info> {
6565

6666
// Component data
6767
#[account]
68-
#[derive(InitSpace, Default, Copy)]
68+
#[derive(InitSpace, Default)]
6969
pub struct Velocity {
7070
pub x: i64,
7171
pub y: i64,
7272
pub z: i64,
7373
pub last_applied: i64,
74+
#[max_len(20)]
75+
pub description: String,
7476
}
7577

7678
impl Velocity {

0 commit comments

Comments
 (0)