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: 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
1
+
error: user_a and user_b have identical account types but do not have a key check constraint
2
+
--> $DIR/lib.rs:28:5
3
3
|
4
-
LL | let user_a = &mut ctx.accounts.user_a;
5
-
| ^^^^^^^^^^^^^^^^^^^
4
+
LL | user_a: Account<'info, User>,
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `-D duplicate-mutable-accounts` implied by `-D warnings`
8
-
help: add a key check to make sure the accounts have different keys, e.g., x.key() != y.key()
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.
15
-
--> $DIR/lib.rs:15:27
14
+
error: user_a and user_c have identical account types but do not have a key check constraint
15
+
--> $DIR/lib.rs:28:5
16
16
|
17
-
LL | let user_a = &mut ctx.accounts.user_a;
18
-
| ^^^^^^^^^^^^^^^^^^^
17
+
LL | user_a: Account<'info, User>,
18
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19
19
|
20
-
help: add a key check to make sure the accounts have different keys, e.g., x.key() != y.key()
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.
27
-
--> $DIR/lib.rs:16:27
26
+
error: user_b and user_c have identical account types but do not have a key check constraint
27
+
--> $DIR/lib.rs:29:5
28
28
|
29
-
LL | let user_b = &mut ctx.accounts.user_b;
30
-
| ^^^^^^^^^^^^^^^^^^^
29
+
LL | user_b: Account<'info, User>,
30
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31
31
|
32
-
help: add a key check to make sure the accounts have different keys, e.g., x.key() != y.key()
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
1
+
error: user_a and user_b have identical account types but do not have a key check constraint
2
+
--> $DIR/lib.rs:25:5
3
3
|
4
-
LL | let user_a = &mut ctx.accounts.user_a;
5
-
| ^^^^^^^^^^^^^^^^^^^
4
+
LL | user_a: Account<'info, User>,
5
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `-D duplicate-mutable-accounts` implied by `-D warnings`
8
-
help: add a key check to make sure the accounts have different keys, e.g., x.key() != y.key()
0 commit comments