Skip to content

Commit

Permalink
refactor(protocol): remove the receive function from TaikoL1.sol (#17865
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dantaik authored Jul 31, 2024
1 parent ffb326b commit 3542420
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/protocol/contracts/L1/TaikoL1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ contract TaikoL1 is EssentialContract, ITaikoL1, TaikoEvents {

error L1_FORK_ERROR();
error L1_INVALID_PARAMS();
error L1_RECEIVE_DISABLED();

modifier whenProvingNotPaused() {
if (state.slotB.provingPaused) revert LibProving.L1_PROVING_PAUSED();
Expand All @@ -43,11 +42,6 @@ contract TaikoL1 is EssentialContract, ITaikoL1, TaikoEvents {
_;
}

/// @dev Allows for receiving Ether from Hooks
receive() external payable {
if (!inNonReentrant()) revert L1_RECEIVE_DISABLED();
}

/// @notice Initializes the contract.
/// @param _owner The owner of this contract. msg.sender will be used if this value is zero.
/// @param _rollupAddressManager The address of the {AddressManager} contract.
Expand Down

0 comments on commit 3542420

Please sign in to comment.