Skip to content

test(33_Airdrop): cover allowance boundary cases - #931

Open
wuyua9 wants to merge 1 commit into
AmazingAng:mainfrom
wuyua9:codex/airdrop-boundary-test-20260813
Open

wuyua9 wants to merge 1 commit into
AmazingAng:mainfrom
wuyua9:codex/airdrop-boundary-test-20260813

Conversation

@wuyua9

@wuyua9 wuyua9 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

What

Add a focused Foundry regression test for 33_Airdrop/Airdrop.sol covering the multiTransferToken boundary behavior.

Why

The contract must allow an allowance exactly equal to the sum of the airdrop amounts. The test also preserves the failure behavior for insufficient allowance and mismatched recipient/amount arrays, so a future change from >= back to > is caught.

Scope

  • Add test/Airdrop.t.sol only.
  • Cover exact allowance success and recipient balance/allowance results.
  • Cover insufficient allowance and mismatched array reverts.
  • No contract or documentation changes.

Validation

  • git diff --check passed.
  • Static test-shape checks passed.
  • Local forge test --match-path test/Airdrop.t.sol -vvv could not run because forge is not installed in the submission environment. Please rely on CI for Foundry compilation and execution.

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.

1 participant