Skip to content

Commit

Permalink
Update SequencerInboxStub to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneh1999 committed Nov 22, 2024
1 parent 4c8aa4d commit 8668907
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions deploy/SequencerInboxStubCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand All @@ -24,6 +31,7 @@ module.exports = async hre => {
117964,
reader4844.address,
false,
espressoTEEVerifier.address,
],
})
}
Expand Down
4 changes: 3 additions & 1 deletion src/mocks/SequencerInboxStub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 {
Expand Down

0 comments on commit 8668907

Please sign in to comment.