Skip to content

Commit

Permalink
remove unwanted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneh1999 committed Dec 6, 2024
1 parent fa45bf8 commit 1a5727d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/bridge/SequencerInbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {IGasRefunder} from "../libraries/IGasRefunder.sol";
import {GasRefundEnabled} from "../libraries/GasRefundEnabled.sol";
import "../libraries/ArbitrumChecker.sol";
import {IERC20Bridge} from "./IERC20Bridge.sol";
import {EspressoTEEVerifier} from "../bridge/EspressoTEEVerifier.sol";
import {IEspressoTEEVerifier} from "../bridge/IEspressoTEEVerifier.sol";

/**
* @title Accepts batches from the sequencer and adds them to the rollup inbox.
Expand Down Expand Up @@ -132,7 +132,7 @@ contract SequencerInbox is DelegateCallAware, GasRefundEnabled, ISequencerInbox
// True if the chain this SequencerInbox is deployed on uses custom fee token
bool public immutable isUsingFeeToken;

EspressoTEEVerifier public espressoTEEVerifier;
IEspressoTEEVerifier public espressoTEEVerifier;

constructor(uint256 _maxDataSize, IReader4844 reader4844_, bool _isUsingFeeToken) {
maxDataSize = _maxDataSize;
Expand Down Expand Up @@ -185,7 +185,10 @@ contract SequencerInbox is DelegateCallAware, GasRefundEnabled, ISequencerInbox
Deprecated because we created another `initialize` function that accepts the `EspressoTEEVerifier` contract
address as a parameter which is used by the `SequencerInbox` contract to verify the TEE attestation quote.
*/
function initialize(IBridge bridge_, ISequencerInbox.MaxTimeVariation calldata maxTimeVariation_) external onlyDelegated {
function initialize(
IBridge bridge_,
ISequencerInbox.MaxTimeVariation calldata maxTimeVariation_
) external onlyDelegated {
revert Deprecated();
}

Expand Down Expand Up @@ -213,7 +216,7 @@ contract SequencerInbox is DelegateCallAware, GasRefundEnabled, ISequencerInbox
rollup = bridge_.rollup();

_setMaxTimeVariation(maxTimeVariation_);
espressoTEEVerifier = EspressoTEEVerifier(_espressoTEEVerifier);
espressoTEEVerifier = IEspressoTEEVerifier(_espressoTEEVerifier);
}

/// @notice Allows the rollup owner to sync the rollup address
Expand Down Expand Up @@ -856,7 +859,7 @@ contract SequencerInbox is DelegateCallAware, GasRefundEnabled, ISequencerInbox
}

function setEspressoTEEVerifier(address _espressoTEEVerifier) external onlyRollupOwner {
espressoTEEVerifier = EspressoTEEVerifier(_espressoTEEVerifier);
espressoTEEVerifier = IEspressoTEEVerifier(_espressoTEEVerifier);
emit OwnerFunctionCalled(6);
}

Expand Down

0 comments on commit 1a5727d

Please sign in to comment.