Skip to content

Add unit and regression tests for issues 499, 486, 488, and 485#535

Merged
Chucks1093 merged 7 commits into
accesslayerorg:mainfrom
Alaka-ibr:fix-issues-499-486-488-485
Jul 5, 2026
Merged

Add unit and regression tests for issues 499, 486, 488, and 485#535
Chucks1093 merged 7 commits into
accesslayerorg:mainfrom
Alaka-ibr:fix-issues-499-486-488-485

Conversation

@Alaka-ibr

@Alaka-ibr Alaka-ibr commented Jun 30, 2026

Copy link
Copy Markdown

Summary

Closes #499
Closes #486
Closes #488
Closes #485

Testing

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace

Checklist

  • Linked issue or backlog item
  • Added or updated creator-keys unit/integration tests for every changed contract behavior, including failure paths for new or reachable ContractError variants
  • Ran cargo fmt --all -- --check, cargo clippy --workspace --all-targets -- -D warnings, and cargo test --workspace, or explained exactly why a command was not run
  • Reviewed persistent storage changes against docs/storage-key-invariants.md; any storage layout change includes a migration/backward-compatibility note
  • Confirmed event names, topic order, payload field order, and field meanings remain compatible with docs/contract-event-conventions.md, or documented the breaking change and versioning plan
  • Updated docs for any changed public contract interface, read-only method, event schema, storage behavior, fee logic, or deployment workflow
  • Scope stays limited to one contract concern and does not include unrelated formatting, lockfile, generated artifact, or dependency changes

@drips-wave

drips-wave Bot commented Jun 30, 2026

Copy link
Copy Markdown

@Alaka-ibr Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Developer added 3 commits July 2, 2026 11:28
… stable to rust-toolchain action (required parameter) - Import soroban_sdk::testutils::Ledger trait to fix E0599 compile error - Fix creator_fee_rotation_regression test to use correct register_creator API
…s in test snapshot files by accepting upstream changes which include the new whitelist parameter in register_creator API
@Chucks1093

Copy link
Copy Markdown
Contributor

Please can you fix CI

Developer and others added 2 commits July 2, 2026 21:29
…rParams API After merging upstream/main, the register_creator function signature changed to use RegisterCreatorParams struct and added whitelist parameter. Updated the test to match the new API.
…s struct

Three test files still used the old flat positional calling convention for
register_creator. Updated key_supply.rs, locked_allocation_claimed_view_regression.rs,
and quadratic_curve_symmetry_regression.rs to pass RegisterCreatorParams as the
first argument and include the new whitelist Option<WhitelistConfig> as the 6th arg.
@Chucks1093

Copy link
Copy Markdown
Contributor

A PR was merged before this one that changed how register_creator works. The old way took creator and handle as separate arguments. The new way packs them into one struct called RegisterCreatorParams.

Three test files in this PR were still calling it the old way, so Rust rejected them at compile time. I updated all three files to use the new struct and also pass the two new optional arguments (co_creator, whitelist) that the same PR added.

Advancing the ledger after contract creation caused the instance to appear
archived in the test environment. Moving the ledger.set() call to before
register_creator_keys ensures the TTL is fresh at the target sequence number.
@Chucks1093 Chucks1093 merged commit a8f5ddf into accesslayerorg:main Jul 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment