Skip to content

fix: repair corrupted test files and update call signatures - #338

Merged
misrasamuelisiguzor-oss merged 3 commits into
WHEELBACK:mainfrom
Ayilojay:feat/cross-contract-integration-tests-275-276
Jul 27, 2026
Merged

fix: repair corrupted test files and update call signatures#338
misrasamuelisiguzor-oss merged 3 commits into
WHEELBACK:mainfrom
Ayilojay:feat/cross-contract-integration-tests-275-276

Conversation

@Ayilojay

Copy link
Copy Markdown
Contributor
  • Reconstruct invoice_test.rs: remove interleaved/duplicated content, fix test_release_escrow_transitions_paid_to_released body, deduplicate test_mark_paid_blocked_when_paused, fix test_invoice_create_to_*
  • Add &0 merchant_nonce arg to all create_invoice calls in invoice_id_boundary_test, invoice_invalid_amount_test, invoice_amount_invariant_test, and invoice_status_settlement_proposal_integration_test
  • Add MaybeBytes import to tests that now use it
  • Fix execute_settlement calls in treasury_threshold_rejection_test to include missing signer argument
  • Fix task1_tests event_symbol: use TryFromVal::try_from_val(env, &val) instead of .try_into() which has no Env context
  • Update property test cases to use amounts >= 10_000_000 (1 USDC min) to satisfy the require_usdc_precision guardrail added in test(treasury): paused treasury rejects all state-mutating calls #57
  • Fix test_amount_matrix: remove (1, 1, true) case now rejected by USDC precision check
  • Fix u64 boundary tests to use try_ variants to avoid non-unwinding host aborts at u64::MAX
  • Create abis/invoice.json ABI snapshot with all 13 functions and 8 events to satisfy test_abi_snapshot_matches_contract

Description

Related Issue

Closes #[issue_id]

Checklist

- Reconstruct invoice_test.rs: remove interleaved/duplicated content,
  fix test_release_escrow_transitions_paid_to_released body, deduplicate
  test_mark_paid_blocked_when_paused, fix test_invoice_create_to_*
- Add &0 merchant_nonce arg to all create_invoice calls in
  invoice_id_boundary_test, invoice_invalid_amount_test,
  invoice_amount_invariant_test, and
  invoice_status_settlement_proposal_integration_test
- Add MaybeBytes import to tests that now use it
- Fix execute_settlement calls in treasury_threshold_rejection_test
  to include missing signer argument
- Fix task1_tests event_symbol: use TryFromVal::try_from_val(env, &val)
  instead of .try_into() which has no Env context
- Update property test cases to use amounts >= 10_000_000 (1 USDC min)
  to satisfy the require_usdc_precision guardrail added in WHEELBACK#57
- Fix test_amount_matrix: remove (1, 1, true) case now rejected by
  USDC precision check
- Fix u64 boundary tests to use try_ variants to avoid non-unwinding
  host aborts at u64::MAX
- Create abis/invoice.json ABI snapshot with all 13 functions and
  8 events to satisfy test_abi_snapshot_matches_contract
@drips-wave

drips-wave Bot commented Jul 27, 2026

Copy link
Copy Markdown

@Ayilojay 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

@misrasamuelisiguzor-oss
misrasamuelisiguzor-oss merged commit 8627f00 into WHEELBACK:main Jul 27, 2026
0 of 8 checks passed
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.

#85: Extend pause-blocking integration coverage to the full lifecycle #84: Integration test — compliance block between proposal and execution

2 participants