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
52d9e6b7
Unverified
Commit
52d9e6b7
authored
May 11, 2021
by
ben-chain
Committed by
GitHub
May 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test[integration-tests]: l2geth call and creation OOG (#839)
parent
c949803f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
rpc.spec.ts
integration-tests/test/rpc.spec.ts
+18
-0
No files found.
integration-tests/test/rpc.spec.ts
View file @
52d9e6b7
...
...
@@ -135,6 +135,15 @@ describe('Basic RPC tests', () => {
expectedReverterRevertData
=
encodeSolidityRevertMessage
(
revertMessage
)
})
it
(
'
should correctly identify call out-of-gas
'
,
async
()
=>
{
await
expect
(
provider
.
call
({
...
revertingTx
,
gasLimit
:
21
_000
,
})
).
to
.
be
.
rejectedWith
(
'
out of gas
'
)
})
it
(
'
should correctly return solidity revert data from a call
'
,
async
()
=>
{
const
revertData
=
await
provider
.
call
(
revertingTx
)
const
expectedRevertData
=
encodeSolidityRevertMessage
(
revertMessage
)
...
...
@@ -151,6 +160,15 @@ describe('Basic RPC tests', () => {
expect
(
revertData
).
to
.
eq
(
expectedReverterRevertData
)
})
it
(
'
should correctly identify contract creation out of gas
'
,
async
()
=>
{
await
expect
(
provider
.
call
({
...
revertingDeployTx
,
gasLimit
:
30
_000
,
})
).
to
.
be
.
rejectedWith
(
'
out of gas
'
)
})
it
(
'
should return the correct error message when attempting to deploy unsafe initcode
'
,
async
()
=>
{
// PUSH1 0x00 PUSH1 0x00 SSTORE
const
unsafeCode
=
'
0x6000600055
'
...
...
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