Skip to content

Commit

Permalink
test: await init
Browse files Browse the repository at this point in the history
  • Loading branch information
gzeoneth committed Jan 17, 2024
1 parent 135aa80 commit da68c87
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/contract/sequencerInbox.spec.4844.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,7 @@ describe('SequencerInbox', async () => {
const blobBasefeeReader = await Toolkit4844.deployBlobBasefeeReader(
fundingWallet
)
const sequencerInboxFac = (await ethers.getContractFactory(
'SequencerInbox'
)) as SequencerInbox__factory
const sequencerInboxFac = new SequencerInbox__factory(deployer)
const seqInboxTemplate = await sequencerInboxFac.deploy(
117964,
dataHashReader.address,
Expand Down Expand Up @@ -324,12 +322,14 @@ describe('SequencerInbox', async () => {
.attach(sequencerInboxProxy.address)
.connect(user)
await (await bridgeAdmin.initialize(rollupMock.address)).wait()
await sequencerInbox.initialize(bridgeProxy.address, {
delayBlocks: maxDelayBlocks,
delaySeconds: maxDelayTime,
futureBlocks: 10,
futureSeconds: 3000,
})
await (
await sequencerInbox.initialize(bridgeProxy.address, {
delayBlocks: maxDelayBlocks,
delaySeconds: maxDelayTime,
futureBlocks: 10,
futureSeconds: 3000,
})
).wait()

const inbox = await inboxFac.attach(inboxProxy.address).connect(user)

Expand Down

0 comments on commit da68c87

Please sign in to comment.