L1FeeVault.t.sol 969 Bytes
Newer Older
1 2 3 4
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

// Testing utilities
5
import { CommonTest } from "test/setup/CommonTest.sol";
6 7 8 9 10

// Libraries
import { Types } from "src/libraries/Types.sol";

// Test the implementations of the FeeVault
11
contract FeeVault_Test is CommonTest {
12 13 14 15 16 17
    /// @dev Tests that the constructor sets the correct values.
    function test_constructor_l1FeeVault_succeeds() external view {
        assertEq(l1FeeVault.RECIPIENT(), deploy.cfg().l1FeeVaultRecipient());
        assertEq(l1FeeVault.recipient(), deploy.cfg().l1FeeVaultRecipient());
        assertEq(l1FeeVault.MIN_WITHDRAWAL_AMOUNT(), deploy.cfg().l1FeeVaultMinimumWithdrawalAmount());
        assertEq(l1FeeVault.minWithdrawalAmount(), deploy.cfg().l1FeeVaultMinimumWithdrawalAmount());
18 19
        assertEq(uint8(l1FeeVault.WITHDRAWAL_NETWORK()), uint8(Types.WithdrawalNetwork.L1));
        assertEq(uint8(l1FeeVault.withdrawalNetwork()), uint8(Types.WithdrawalNetwork.L1));
20 21
    }
}