Skip to content

Commit da68c87

Browse files
committed
test: await init
1 parent 135aa80 commit da68c87

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/contract/sequencerInbox.spec.4844.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,7 @@ describe('SequencerInbox', async () => {
276276
const blobBasefeeReader = await Toolkit4844.deployBlobBasefeeReader(
277277
fundingWallet
278278
)
279-
const sequencerInboxFac = (await ethers.getContractFactory(
280-
'SequencerInbox'
281-
)) as SequencerInbox__factory
279+
const sequencerInboxFac = new SequencerInbox__factory(deployer)
282280
const seqInboxTemplate = await sequencerInboxFac.deploy(
283281
117964,
284282
dataHashReader.address,
@@ -324,12 +322,14 @@ describe('SequencerInbox', async () => {
324322
.attach(sequencerInboxProxy.address)
325323
.connect(user)
326324
await (await bridgeAdmin.initialize(rollupMock.address)).wait()
327-
await sequencerInbox.initialize(bridgeProxy.address, {
328-
delayBlocks: maxDelayBlocks,
329-
delaySeconds: maxDelayTime,
330-
futureBlocks: 10,
331-
futureSeconds: 3000,
332-
})
325+
await (
326+
await sequencerInbox.initialize(bridgeProxy.address, {
327+
delayBlocks: maxDelayBlocks,
328+
delaySeconds: maxDelayTime,
329+
futureBlocks: 10,
330+
futureSeconds: 3000,
331+
})
332+
).wait()
333333

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

0 commit comments

Comments
 (0)