github.com/ethereum-optimism/optimism@v1.7.2/packages/contracts-bedrock/test/universal/FeeVault.t.sol (about) 1 // SPDX-License-Identifier: MIT 2 pragma solidity 0.8.15; 3 4 // Testing utilities 5 import { Bridge_Initializer } from "test/setup/Bridge_Initializer.sol"; 6 7 // Target contract 8 import { FeeVault } from "src/universal/FeeVault.sol"; 9 10 // Test the implementations of the FeeVault 11 contract FeeVault_Test is Bridge_Initializer { 12 /// @dev Tests that the constructor sets the correct values. 13 function test_constructor_l1FeeVault_succeeds() external { 14 assertEq(l1FeeVault.RECIPIENT(), deploy.cfg().l1FeeVaultRecipient()); 15 assertEq(l1FeeVault.MIN_WITHDRAWAL_AMOUNT(), deploy.cfg().l1FeeVaultMinimumWithdrawalAmount()); 16 assertEq(uint8(l1FeeVault.WITHDRAWAL_NETWORK()), uint8(FeeVault.WithdrawalNetwork.L1)); 17 } 18 19 /// @dev Tests that the constructor sets the correct values. 20 function test_constructor_baseFeeVault_succeeds() external { 21 assertEq(baseFeeVault.RECIPIENT(), deploy.cfg().baseFeeVaultRecipient()); 22 assertEq(baseFeeVault.MIN_WITHDRAWAL_AMOUNT(), deploy.cfg().baseFeeVaultMinimumWithdrawalAmount()); 23 assertEq(uint8(baseFeeVault.WITHDRAWAL_NETWORK()), uint8(FeeVault.WithdrawalNetwork.L1)); 24 } 25 }