Commit 4b110ed
committed
Fix transfer-sol: use crate::ID instead of id() in instruction module
When instruction handlers were extracted from lib.rs into their own files,
the id() function (which refers to declare_id!()) is no longer in scope.
Use crate::ID to reference the program ID from a nested module.1 parent c6289df commit 4b110ed
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
- basics/transfer-sol/anchor/programs/transfer-sol/src/instructions
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments