diff --git a/deploy/SequencerInboxStubCreator.js b/deploy/SequencerInboxStubCreator.js index e61a227ca..3dfc4c82e 100644 --- a/deploy/SequencerInboxStubCreator.js +++ b/deploy/SequencerInboxStubCreator.js @@ -6,6 +6,13 @@ module.exports = async hre => { const { deployer } = await getNamedAccounts() const bridge = await ethers.getContract('BridgeStub') + + const espressoTEEVerifierInboxFac = await ethers.getContractFactory( + 'EspressoTEEVerifierMock' + ) + const espressoTEEVerifier = await espressoTEEVerifierInboxFac.deploy() + await espressoTEEVerifier.deployed() + const reader4844 = await Toolkit4844.deployReader4844( await ethers.getSigner(deployer) ) @@ -24,6 +31,7 @@ module.exports = async hre => { 117964, reader4844.address, false, + espressoTEEVerifier.address, ], }) } diff --git a/src/mocks/SequencerInboxStub.sol b/src/mocks/SequencerInboxStub.sol index 49b317020..6df632ef3 100644 --- a/src/mocks/SequencerInboxStub.sol +++ b/src/mocks/SequencerInboxStub.sol @@ -15,7 +15,8 @@ contract SequencerInboxStub is SequencerInbox { ISequencerInbox.MaxTimeVariation memory maxTimeVariation_, uint256 maxDataSize_, IReader4844 reader4844_, - bool isUsingFeeToken_ + bool isUsingFeeToken_, + address espressoTEEVerifier_ ) SequencerInbox(maxDataSize_, reader4844_, isUsingFeeToken_) { bridge = bridge_; rollup = IOwnable(msg.sender); @@ -24,6 +25,7 @@ contract SequencerInboxStub is SequencerInbox { delaySeconds = uint64(maxTimeVariation_.delaySeconds); futureSeconds = uint64(maxTimeVariation_.futureSeconds); isBatchPoster[sequencer_] = true; + espressoTEEVerifier = EspressoTEEVerifier(espressoTEEVerifier_); } function addInitMessage(uint256 chainId) external {