Skip to content

NONEVM-97: Add setConfig and clearConfig unit tests#363

Merged
Fletch153 merged 1 commit intodevelopfrom
NONEVM-97/add-setconfig-unit-tests
Mar 6, 2026
Merged

NONEVM-97: Add setConfig and clearConfig unit tests#363
Fletch153 merged 1 commit intodevelopfrom
NONEVM-97/add-setconfig-unit-tests

Conversation

@Fletch153
Copy link
Contributor

Summary

  • Port EVM KeystoneForwarder_SetConfigTest suite to Move for both platform and platform_secondary forwarder contracts
  • Add setConfig tests: success, max oracles, upsert, multiple DONs, multiple versions, not owner, f=0, excess oracles, insufficient oracles
  • Add clearConfig tests: success, get-after-clear, isolation, not owner, nonexistent config
  • Add parameterized generate_oracle_set_with_params helper for flexible test setup

Test plan

  • aptos move test passes for platform contract
  • aptos move test passes for platform_secondary contract
  • All 15 new tests per contract cover the EVM baseline plus clearConfig edge cases per JIRA scope

@Fletch153 Fletch153 requested a review from a team as a code owner March 3, 2026 19:29
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

👋 Fletch153, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@Fletch153 Fletch153 force-pushed the NONEVM-97/add-setconfig-unit-tests branch from dc4ba21 to 4084feb Compare March 3, 2026 20:11
Port EVM KeystoneForwarder_SetConfigTest suite to Move for both
platform and platform_secondary forwarder contracts.
@Fletch153 Fletch153 force-pushed the NONEVM-97/add-setconfig-unit-tests branch from 4084feb to f9fa942 Compare March 3, 2026 20:21
@Fletch153 Fletch153 merged commit 8d629e7 into develop Mar 6, 2026
20 of 21 checks passed
@Fletch153 Fletch153 deleted the NONEVM-97/add-setconfig-unit-tests branch March 6, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants