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
1f7a3ae0
Commit
1f7a3ae0
authored
Apr 12, 2021
by
Mark Tyneway
Committed by
Liam Horne
Apr 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: move to correct package
parent
bfa00658
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
fee-payment.spec.ts
integration-tests/test/fee-payment.spec.ts
+0
-6
native-eth.spec.ts
integration-tests/test/native-eth.spec.ts
+15
-0
No files found.
integration-tests/test/fee-payment.spec.ts
View file @
1f7a3ae0
...
...
@@ -12,12 +12,6 @@ describe('Fee Payment Integration Tests', async () => {
env
=
await
OptimismEnv
.
new
()
})
it
(
'
Should estimate gas for wETH transfer
'
,
async
()
=>
{
const
amount
=
utils
.
parseEther
(
'
0.5
'
)
const
gas
=
await
env
.
ovmEth
.
estimateGas
.
transfer
(
other
,
amount
)
expect
(
gas
).
is
.
instanceof
(
BigNumber
)
})
it
(
'
Paying a nonzero but acceptable gasPrice fee
'
,
async
()
=>
{
const
amount
=
utils
.
parseEther
(
'
0.5
'
)
...
...
integration-tests/test/native-eth.spec.ts
View file @
1f7a3ae0
...
...
@@ -40,6 +40,21 @@ describe('Native ETH Integration Tests', async () => {
l2Bob
=
l1Bob
.
connect
(
env
.
l2Wallet
.
provider
)
})
describe
(
'
estimateGas
'
,
()
=>
{
it
(
'
Should estimate gas for ETH transfer
'
,
async
()
=>
{
const
amount
=
utils
.
parseEther
(
'
0.5
'
)
const
addr
=
await
l2Bob
.
getAddress
()
const
gas
=
await
env
.
ovmEth
.
estimateGas
.
transfer
(
addr
,
amount
)
expect
(
gas
).
is
.
instanceof
(
BigNumber
)
})
it
(
'
Should estimate gas for ETH withdraw
'
,
async
()
=>
{
const
amount
=
utils
.
parseEther
(
'
0.5
'
)
const
gas
=
await
env
.
ovmEth
.
estimateGas
.
withdraw
(
amount
)
expect
(
gas
).
is
.
instanceof
(
BigNumber
)
})
})
it
(
'
deposit
'
,
async
()
=>
{
const
depositAmount
=
10
const
preBalances
=
await
getBalances
(
env
)
...
...
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