Skip to content

Commit 31c3540

Browse files
committed
chore: formatting
1 parent b280394 commit 31c3540

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

contracts/contracts/core/GasTankDepositor.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ contract GasTankDepositor {
3838
MAXIMUM_DEPOSIT = _maxDeposit;
3939
}
4040

41-
receive() external payable {
41+
receive() external payable {
4242
revert Errors.InvalidReceive();
4343
}
4444

@@ -59,7 +59,6 @@ contract GasTankDepositor {
5959
_fundGasTank(MAXIMUM_DEPOSIT);
6060
}
6161

62-
/// @dev `fundGasTank` Internal function to fund the gas tank.
6362
function _fundGasTank(uint256 _amountToTransfer) internal {
6463
require(address(this).balance >= _amountToTransfer, InsufficientFunds(address(this).balance, _amountToTransfer));
6564

contracts/test/core/GasTankDepositorTest.sol

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ contract GasTankDepositorTest is Test {
2626
_gasTankDepositorImpl = new GasTankDepositor(rpcService, MAXIMUM_DEPOSIT);
2727
}
2828

29-
//=======================TESTS=======================
29+
//=======================TESTS FOR THE CONSTRUCTOR=======================
3030

3131
function testConstructorSetsValues() public view {
3232
assertEq(_gasTankDepositorImpl.RPC_SERVICE(), rpcService);
@@ -43,6 +43,8 @@ contract GasTankDepositorTest is Test {
4343
new GasTankDepositor(rpcService, 0);
4444
}
4545

46+
//=======================TESTS FOR THE DELEGATION CODE=======================
47+
4648
function testSetsDelegationCodeAtAddress() public {
4749
// Initial code is empty
4850
assertEq(alice.code.length, 0);
@@ -85,6 +87,7 @@ contract GasTankDepositorTest is Test {
8587
assertEq(errorSelector, Errors.InvalidReceive.selector);
8688
}
8789

90+
//=======================TESTS FOR EOA ETH TRANSFERS=======================
8891

8992
function testEOAReceiveNoRevert() public {
9093
uint256 beforeBalance = alice.balance;

0 commit comments

Comments
 (0)