Skip to content

Commit

Permalink
update arbrollup.spec with waffle v4 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
DZGoldman committed Feb 13, 2024
1 parent 6e15f8a commit fac404b
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions test/contract/arbRollup.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1398,11 +1398,9 @@ describe('ArbRollup', () => {
it('can set is sequencer', async function () {
const testAddress = await accounts[9].getAddress()
expect(await sequencerInbox.isSequencer(testAddress)).to.be.false
await expect(
sequencerInbox.setIsSequencer(testAddress, true)
).to.revertedWith(
`NotBatchPosterManager("${await sequencerInbox.signer.getAddress()}")`
)
await expect(sequencerInbox.setIsSequencer(testAddress, true))
.to.revertedWith(`NotBatchPosterManager`)
.withArgs(await sequencerInbox.signer.getAddress())
expect(await sequencerInbox.isSequencer(testAddress)).to.be.false

await (
Expand All @@ -1425,11 +1423,9 @@ describe('ArbRollup', () => {
it('can set a batch poster', async function () {
const testAddress = await accounts[9].getAddress()
expect(await sequencerInbox.isBatchPoster(testAddress)).to.be.false
await expect(
sequencerInbox.setIsBatchPoster(testAddress, true)
).to.revertedWith(
`NotBatchPosterManager("${await sequencerInbox.signer.getAddress()}")`
)
await expect(sequencerInbox.setIsBatchPoster(testAddress, true))
.to.revertedWith(`NotBatchPosterManager`)
.withArgs(await sequencerInbox.signer.getAddress())
expect(await sequencerInbox.isBatchPoster(testAddress)).to.be.false

await (
Expand All @@ -1456,7 +1452,9 @@ describe('ArbRollup', () => {
)
await expect(
sequencerInbox.connect(accounts[8]).setBatchPosterManager(testManager)
).to.revertedWith(`NotOwner("${testManager}", "${upgradeExecutor}")`)
)
.to.revertedWith('NotOwner')
.withArgs(testManager, upgradeExecutor)
expect(await sequencerInbox.batchPosterManager()).to.eq(
await batchPosterManager.getAddress()
)
Expand Down

0 comments on commit fac404b

Please sign in to comment.