Commit 23ec66f7 authored by Mark Tyneway's avatar Mark Tyneway Committed by Kelvin Fichter

regenesis-surgery: enable 1inch deployer tests

parent 3268bb38
...@@ -62,11 +62,20 @@ describe('EOAs', () => { ...@@ -62,11 +62,20 @@ describe('EOAs', () => {
}) })
}) })
// Does not exist on Kovan? // eslint-disable-next-line
describe.skip('1inch deployer', () => { describe('1inch deployer', function() {
let eoa: Account let eoa: Account
before(() => { // eslint-disable-next-line
before(function() {
if (env.surgeryDataSources.configs.l2NetworkName === 'kovan') {
console.log('1inch deployer does not exist on optimistic kovan')
this.skip()
}
eoa = env.getAccountsByType(AccountType.ONEINCH_DEPLOYER)[0] eoa = env.getAccountsByType(AccountType.ONEINCH_DEPLOYER)[0]
if (!eoa) {
throw new Error('Cannot find one inch deployer')
}
}) })
it('should not have any code', async () => { it('should not have any code', async () => {
...@@ -104,13 +113,13 @@ describe('EOAs', () => { ...@@ -104,13 +113,13 @@ describe('EOAs', () => {
eoa.address, eoa.address,
env.config.stateDumpHeight env.config.stateDumpHeight
) )
expect(preNonce).to.not.eq(0)
// Nonce after can come from the latest block. // Nonce after can come from the latest block.
const postNonce = await env.postL2Provider.getTransactionCount( const postNonce = await env.postL2Provider.getTransactionCount(
eoa.address eoa.address
) )
expect(postNonce).to.deep.eq(0)
expect(preNonce).to.deep.eq(postNonce)
}) })
}) })
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment