Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(protocol): remove the receive function from TaikoL1.sol #17865

Merged
merged 2 commits into from
Jul 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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