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
549a8566
Unverified
Commit
549a8566
authored
Nov 05, 2021
by
Matthew Slipper
Committed by
Kelvin Fichter
Nov 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integration-tests: Add tests for debug_traceTransaction and debug_traceBlock
parent
c684e8eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
rpc.spec.ts
integration-tests/test/rpc.spec.ts
+22
-0
No files found.
integration-tests/test/rpc.spec.ts
View file @
549a8566
...
@@ -20,6 +20,8 @@ import {
...
@@ -20,6 +20,8 @@ import {
TransactionRequest
,
TransactionRequest
,
}
from
'
@ethersproject/providers
'
}
from
'
@ethersproject/providers
'
import
{
solidity
}
from
'
ethereum-waffle
'
import
{
solidity
}
from
'
ethereum-waffle
'
import
simpleStorageJson
from
'
../artifacts/contracts/SimpleStorage.sol/SimpleStorage.json
'
chai
.
use
(
chaiAsPromised
)
chai
.
use
(
chaiAsPromised
)
chai
.
use
(
solidity
)
chai
.
use
(
solidity
)
...
@@ -403,6 +405,26 @@ describe('Basic RPC tests', () => {
...
@@ -403,6 +405,26 @@ describe('Basic RPC tests', () => {
})
})
})
})
describe
(
'
debug_traceTransaction
'
,
()
=>
{
it
(
'
should match debug_traceBlock
'
,
async
()
=>
{
const
storage
=
new
ContractFactory
(
simpleStorageJson
.
abi
,
simpleStorageJson
.
bytecode
,
env
.
l2Wallet
)
const
tx
=
(
await
storage
.
deploy
()).
deployTransaction
const
receipt
=
await
tx
.
wait
()
const
txTrace
=
await
provider
.
send
(
'
debug_traceTransaction
'
,
[
receipt
.
transactionHash
,
])
const
blockTrace
=
await
provider
.
send
(
'
debug_traceBlockByHash
'
,
[
receipt
.
blockHash
,
])
expect
(
txTrace
).
to
.
deep
.
equal
(
blockTrace
[
0
].
result
)
})
})
// SKIP: ?
// SKIP: ?
describe
.
skip
(
'
rollup_gasPrices
'
,
()
=>
{
describe
.
skip
(
'
rollup_gasPrices
'
,
()
=>
{
it
(
'
should return the L1 and L2 gas prices
'
,
async
()
=>
{
it
(
'
should return the L1 and L2 gas prices
'
,
async
()
=>
{
...
...
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