You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: user_a and user_b have identical account types but do not have a key check constraint
2
-
--> $DIR/lib.rs:25:5
1
+
error: the expressions on line $DIR/lib.rs:15:27: 15:46 (#0) and $DIR/lib.rs:16:27: 16:46 (#0) have identical Account types, yet do not contain a proper key check.
2
+
--> $DIR/lib.rs:15:27
3
3
|
4
-
LL | user_a: Account<'info, User>,
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4
+
LL | let user_a = &mut ctx.accounts.user_a;
5
+
| ^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `-D duplicate-mutable-accounts` implied by `-D warnings`
help: add a key check to make sure the accounts have different keys, e.g., x.key() != y.key()
9
+
--> $DIR/lib.rs:16:27
10
10
|
11
-
LL | user_b: Account<'info, User>,
12
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11
+
LL | let user_b = &mut ctx.accounts.user_b;
12
+
| ^^^^^^^^^^^^^^^^^^^
13
13
14
-
error: user_a and user_c have identical account types but do not have a key check constraint
15
-
--> $DIR/lib.rs:25:5
14
+
error: the expressions on line $DIR/lib.rs:15:27: 15:46 (#0) and $DIR/lib.rs:17:27: 17:46 (#0) have identical Account types, yet do not contain a proper key check.
help: add a key check to make sure the accounts have different keys, e.g., x.key() != y.key()
21
+
--> $DIR/lib.rs:17:27
22
22
|
23
-
LL | user_c: Account<'info, User>,
24
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23
+
LL | let user_c = &mut ctx.accounts.user_c;
24
+
| ^^^^^^^^^^^^^^^^^^^
25
25
26
-
error: user_b and user_c have identical account types but do not have a key check constraint
27
-
--> $DIR/lib.rs:26:5
26
+
error: the expressions on line $DIR/lib.rs:16:27: 16:46 (#0) and $DIR/lib.rs:17:27: 17:46 (#0) have identical Account types, yet do not contain a proper key check.
error: user_a and user_b have identical account types but do not have a key check constraint
2
-
--> $DIR/lib.rs:25:5
1
+
error: the expressions on line $DIR/lib.rs:14:27: 14:46 (#0) and $DIR/lib.rs:15:27: 15:46 (#0) have identical Account types, yet do not contain a proper key check.
2
+
--> $DIR/lib.rs:14:27
3
3
|
4
-
LL | user_a: Account<'info, User>,
5
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4
+
LL | let user_a = &mut ctx.accounts.user_a;
5
+
| ^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `-D duplicate-mutable-accounts` implied by `-D warnings`
0 commit comments