Commit 2082a85
Implement event assertions in pyth_governance_test.rs
- Add event type imports (FeeSet, TransactionFeeSet, DataSourcesSet, GovernanceDataSourceSet)
- Update test_set_data_sources to assert DataSourcesSet event emission
- Update test_set_fee to assert FeeSet event with correct old/new fee values
- Update test_authorize_governance_data_source_transfer to assert GovernanceDataSourceSet event
- Update test_set_transaction_fee to assert TransactionFeeSet event
- Use motsu Contract::emitted() method for event verification
- All governance tests now verify correct event emission and data
Co-Authored-By: [email protected] <[email protected]>1 parent c7be32b commit 2082a85
File tree
1 file changed
+36
-2
lines changed- target_chains/stylus/contracts/pyth-receiver/src
1 file changed
+36
-2
lines changedLines changed: 36 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
103 | 114 | | |
104 | 115 | | |
105 | 116 | | |
| |||
145 | 156 | | |
146 | 157 | | |
147 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
148 | 166 | | |
149 | 167 | | |
150 | 168 | | |
| |||
245 | 263 | | |
246 | 264 | | |
247 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
248 | 275 | | |
249 | 276 | | |
250 | 277 | | |
| |||
269 | 296 | | |
270 | 297 | | |
271 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
272 | 306 | | |
273 | 307 | | |
274 | 308 | | |
| |||
0 commit comments