Commit d98856f
committed
Fix cross-program-invocation: remove lever crate dep that conflicts with declare_program!
The lever dev-dependency creates a name collision with the declare_program!(lever)
macro-generated module. Since Anchor 1.0's declare_program! provides all needed CPI
types from the IDL, the crate dependency isn't needed for the program build.
The test uses hand::lever::ID (from the declare_program! generated module) instead
of lever::id() (from the crate). This was previously correct in 3ee5f60 but was
accidentally reverted in 5b929bc.1 parent 3b7bda9 commit d98856f
2 files changed
Lines changed: 2 additions & 5 deletions
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | | - | |
48 | | - | |
49 | | - | |
| 46 | + | |
| 47 | + | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
| |||
0 commit comments