Skip to content

test(adapter): add hostile-callback adversarial test suite#10

Merged
ericbsantana merged 1 commit into
mainfrom
test/adversarial-tests
May 11, 2026
Merged

test(adapter): add hostile-callback adversarial test suite#10
ericbsantana merged 1 commit into
mainfrom
test/adversarial-tests

Conversation

@ericbsantana
Copy link
Copy Markdown
Owner

Description

  • Add MonadVRFAdapter.adversarial.t.sol with focused tests for hostile callbacks: reverter, OOG, re-entrant, requester underpayment
  • Add MockReentrant to MockConsumer.sol (existing reentrancy test attacks via fulfiller receive(), a different vector)
  • No shipped contract code changed
  • Full forge test 38/38 pass

Checklist

  • Code compiles (pnpm build and forge build both pass)
  • All tests pass (pnpm test and forge test)
  • Added tests that fail without the change (where applicable; required for bug fixes)
  • Updated docs in packages/docs/ if user-facing behavior changed
  • For contract changes: storage layout, gas, and redeploy implications noted in the description

@ericbsantana ericbsantana self-assigned this May 9, 2026
@ericbsantana ericbsantana added the enhancement New feature or request label May 9, 2026
@ericbsantana ericbsantana force-pushed the test/adversarial-tests branch from 5d60299 to 83d8439 Compare May 11, 2026 12:17
@ericbsantana ericbsantana merged commit b19e8a4 into main May 11, 2026
3 checks passed
@ericbsantana ericbsantana deleted the test/adversarial-tests branch May 11, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant