Skip to content

Commit 7239dcb

Browse files
committed
test(fast-inbox): read the per-bucket cap from the shared constant (A-1386)
The cap moved to file scope in Inbox.sol so the propose-side settled-bucket check can share one definition with the Inbox; the fuzz harness still read it through the removed contract getter.
1 parent 6d19511 commit 7239dcb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

l1-contracts/test/InboxBucketsFuzz.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pragma solidity >=0.8.27;
55
import {Test} from "forge-std/Test.sol";
66
import {TestERC20} from "src/mock/TestERC20.sol";
77
import {IERC20} from "@oz/token/ERC20/IERC20.sol";
8-
import {IInbox} from "@aztec/core/interfaces/messagebridge/IInbox.sol";
8+
import {IInbox, MAX_MSGS_PER_BUCKET} from "@aztec/core/interfaces/messagebridge/IInbox.sol";
99
import {InboxHarness} from "./harnesses/InboxHarness.sol";
1010
import {TestConstants} from "./harnesses/TestConstants.sol";
1111
import {Constants} from "@aztec/core/libraries/ConstantsGen.sol";
@@ -44,7 +44,7 @@ contract InboxBucketsFuzzTest is Test {
4444
function setUp() public {
4545
IERC20 feeAsset = new TestERC20("Fee Asset", "FA", address(this));
4646
inbox = new InboxHarness(address(this), feeAsset, version, TestConstants.AZTEC_INBOX_BUCKET_RING_SIZE);
47-
cap = inbox.MAX_MSGS_PER_BUCKET();
47+
cap = MAX_MSGS_PER_BUCKET;
4848
}
4949

5050
/// forge-config: default.fuzz.runs = 128

0 commit comments

Comments
 (0)