Commit d1c9d6c
committed
Fix Anchor CI: sync IDL addresses after keys sync
After 'anchor keys sync' generates new keypairs on CI, the declare_id!()
in source gets updated but the IDL files in idls/*.json keep the old
addresses. Since declare_program!(name) reads from the IDL, LiteSVM tests
then load the .so at the stale IDL address while the program expects the
new declare_id!() address, causing DeclaredProgramIdMismatch.
This adds a step after keys sync that updates each IDL's address field
to match the corresponding program address in Anchor.toml.1 parent d98856f commit d1c9d6c
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
145 | 163 | | |
146 | 164 | | |
147 | 165 | | |
| |||
0 commit comments