Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
23ec66f7
Unverified
Commit
23ec66f7
authored
Nov 09, 2021
by
Mark Tyneway
Committed by
Kelvin Fichter
Nov 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regenesis-surgery: enable 1inch deployer tests
parent
3268bb38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
eoa.spec.ts
packages/regenesis-surgery/test/eoa.spec.ts
+14
-5
No files found.
packages/regenesis-surgery/test/eoa.spec.ts
View file @
23ec66f7
...
...
@@ -62,11 +62,20 @@ describe('EOAs', () => {
})
})
//
Does not exist on Kovan?
describe
.
skip
(
'
1inch deployer
'
,
()
=>
{
//
eslint-disable-next-line
describe
(
'
1inch deployer
'
,
function
()
{
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
]
if
(
!
eoa
)
{
throw
new
Error
(
'
Cannot find one inch deployer
'
)
}
})
it
(
'
should not have any code
'
,
async
()
=>
{
...
...
@@ -104,13 +113,13 @@ describe('EOAs', () => {
eoa
.
address
,
env
.
config
.
stateDumpHeight
)
expect
(
preNonce
).
to
.
not
.
eq
(
0
)
// Nonce after can come from the latest block.
const
postNonce
=
await
env
.
postL2Provider
.
getTransactionCount
(
eoa
.
address
)
expect
(
preNonce
).
to
.
deep
.
eq
(
postNonce
)
expect
(
postNonce
).
to
.
deep
.
eq
(
0
)
})
})
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment