diff --git a/.gas-snapshot b/.gas-snapshot index cb2d1653..4e008122 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -64,7 +64,7 @@ ERC20Test:testApprove() (gas: 31058) ERC20Test:testBurn() (gas: 56970) ERC20Test:testFailPermitBadDeadline() (gas: 36924) ERC20Test:testFailPermitBadNonce() (gas: 36874) -ERC20Test:testFailPermitPastDeadline() (gas: 10938) +ERC20Test:testFailPermitPastDeadline() (gas: 8589) ERC20Test:testFailPermitReplay() (gas: 66285) ERC20Test:testFailTransferFromInsufficientAllowance() (gas: 80882) ERC20Test:testFailTransferFromInsufficientBalance() (gas: 81358) @@ -216,7 +216,7 @@ SafeTransferLibTest:testTransferWithMissingReturn() (gas: 36669) SafeTransferLibTest:testTransferWithNonContract() (gas: 3012) SafeTransferLibTest:testTransferWithReturnsTooMuch() (gas: 37115) SafeTransferLibTest:testTransferWithStandardERC20() (gas: 36699) -WETHTest:testDeposit() (gas: 63260) -WETHTest:testFallbackDeposit() (gas: 63524) +WETHTest:testDeposit() (gas: 63535) +WETHTest:testFallbackDeposit() (gas: 63249) WETHTest:testPartialWithdraw() (gas: 73281) WETHTest:testWithdraw() (gas: 54360) diff --git a/src/test/WETH.t.sol b/src/test/WETH.t.sol index f2d8b9e1..3fc8a439 100644 --- a/src/test/WETH.t.sol +++ b/src/test/WETH.t.sol @@ -15,7 +15,7 @@ contract WETHTest is DSTestPlus { weth = new WETH(); } - function testDeposit() public { + function testFallbackDeposit() public { assertEq(weth.balanceOf(address(this)), 0); assertEq(weth.totalSupply(), 0); @@ -25,7 +25,7 @@ contract WETHTest is DSTestPlus { assertEq(weth.totalSupply(), 1 ether); } - function testFallbackDeposit() public { + function testDeposit() public { assertEq(weth.balanceOf(address(this)), 0); assertEq(weth.totalSupply(), 0); @@ -63,7 +63,7 @@ contract WETHTest is DSTestPlus { assertEq(weth.totalSupply(), 0.5 ether); } - function testDeposit(uint256 amount) public { + function testFallbackDeposit(uint256 amount) public { amount = bound(amount, 0, address(this).balance); assertEq(weth.balanceOf(address(this)), 0); @@ -75,7 +75,7 @@ contract WETHTest is DSTestPlus { assertEq(weth.totalSupply(), amount); } - function testFallbackDeposit(uint256 amount) public { + function testDeposit(uint256 amount) public { amount = bound(amount, 0, address(this).balance); assertEq(weth.balanceOf(address(this)), 0);