From 2396a9115e7fccac15094759d9d17474b941a2be Mon Sep 17 00:00:00 2001 From: Rayyan Alam Date: Thu, 22 Oct 2026 18:03:49 -0400 Subject: [PATCH] test(b20): exclude the token address from burnWithMemo revert-order callers The fuzzer can pick address(token) as the caller, which makes _mint(caller, ...) revert with InvalidReceiver and fails the test intermittently. Co-authored-by: Toshi --- test/unit/B20/supply/burnWithMemo_revertOrder.t.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/B20/supply/burnWithMemo_revertOrder.t.sol b/test/unit/B20/supply/burnWithMemo_revertOrder.t.sol index a09aa2c3..c219be42 100644 --- a/test/unit/B20/supply/burnWithMemo_revertOrder.t.sol +++ b/test/unit/B20/supply/burnWithMemo_revertOrder.t.sol @@ -24,6 +24,7 @@ contract B20BurnWithMemoRevertOrderTest is B20Test { function test_burnWithMemo_revertOrder(address caller, uint256 amount, bytes32 memo) public { _assumeValidCaller(caller); vm.assume(caller != admin); + vm.assume(caller != address(token)); // `_mint(token, ...)` reverts with InvalidReceiver amount = bound(amount, 1, type(uint128).max); // Activate all three violations: BURN paused, caller has no BURN_ROLE, zero balance.