File tree 2 files changed +5
-3
lines changed
examples/component-velocity/src
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ world = "WorLD15A7CrDwLcLy4fRqtaTb9fbd8o8iqiEMUDse2n"
21
21
url = " https://api.apr.dev"
22
22
23
23
[provider ]
24
- cluster = " devnet "
25
- wallet = " ~/.config/solana/id .json"
24
+ cluster = " localnet "
25
+ wallet = " ./tests/fixtures/provider .json"
26
26
27
27
[scripts ]
28
28
test = " yarn run ts-mocha -p ./tsconfig.json -t 1000000 tests/bolt.ts"
Original file line number Diff line number Diff line change @@ -65,12 +65,14 @@ pub struct Initialize<'info> {
65
65
66
66
// Component data
67
67
#[ account]
68
- #[ derive( InitSpace , Default , Copy ) ]
68
+ #[ derive( InitSpace , Default ) ]
69
69
pub struct Velocity {
70
70
pub x : i64 ,
71
71
pub y : i64 ,
72
72
pub z : i64 ,
73
73
pub last_applied : i64 ,
74
+ #[ max_len( 20 ) ]
75
+ pub description : String ,
74
76
}
75
77
76
78
impl Velocity {
You can’t perform that action at this time.
0 commit comments