Commit 04803ac8 authored by Maurelian's avatar Maurelian

contracts: Fix OZ-M-02 by removing donateEth()

parent 98d0e06e
...@@ -390,13 +390,4 @@ contract L1StandardBridge_Test is Bridge_Initializer { ...@@ -390,13 +390,4 @@ contract L1StandardBridge_Test is Bridge_Initializer {
hex"" hex""
); );
} }
// donateETH
// - can send ETH to the contract
function test_donateETH() external {
assertEq(address(L1Bridge).balance, 0);
vm.prank(alice);
L1Bridge.donateETH{ value: 1000 }();
assertEq(address(L1Bridge).balance, 1000);
}
} }
...@@ -128,11 +128,6 @@ abstract contract StandardBridge { ...@@ -128,11 +128,6 @@ abstract contract StandardBridge {
* Public Functions * * Public Functions *
********************/ ********************/
/**
* @notice Send ETH to this contract. This is used during upgrades
*/
function donateETH() external payable {}
/** /**
* @notice EOAs can simply send ETH to this contract to have it be deposited * @notice EOAs can simply send ETH to this contract to have it be deposited
* to L2 through the standard bridge. * to L2 through the standard bridge.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment