Skip to content

Commit

Permalink
✅ Fix function names in WETH tests (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaglinux authored Jun 22, 2022
1 parent a902091 commit 3c73813
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
8 changes: 4 additions & 4 deletions src/test/WETH.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 3c73813

Please sign in to comment.