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
bab7797d
Commit
bab7797d
authored
Jun 24, 2021
by
Liam Horne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: run yarn lint --fix at root
parent
cc5beeba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
rpc.spec.ts
integration-tests/test/rpc.spec.ts
+2
-2
watcher.ts
packages/core-utils/src/watcher.ts
+2
-2
No files found.
integration-tests/test/rpc.spec.ts
View file @
bab7797d
...
@@ -429,12 +429,12 @@ describe('Basic RPC tests', () => {
...
@@ -429,12 +429,12 @@ describe('Basic RPC tests', () => {
describe
(
'
rollup_gasPrices
'
,
()
=>
{
describe
(
'
rollup_gasPrices
'
,
()
=>
{
it
(
'
should return the L1 and L2 gas prices
'
,
async
()
=>
{
it
(
'
should return the L1 and L2 gas prices
'
,
async
()
=>
{
const
result
=
await
provider
.
send
(
'
rollup_gasPrices
'
,
[])
;
const
result
=
await
provider
.
send
(
'
rollup_gasPrices
'
,
[])
const
l1GasPrice
=
await
env
.
l1Wallet
.
provider
.
getGasPrice
()
const
l1GasPrice
=
await
env
.
l1Wallet
.
provider
.
getGasPrice
()
const
l2GasPrice
=
await
env
.
gasPriceOracle
.
gasPrice
()
const
l2GasPrice
=
await
env
.
gasPriceOracle
.
gasPrice
()
expect
(
BigNumber
.
from
(
result
.
l1GasPrice
)).
to
.
deep
.
eq
(
l1GasPrice
)
expect
(
BigNumber
.
from
(
result
.
l1GasPrice
)).
to
.
deep
.
eq
(
l1GasPrice
)
expect
(
(
BigNumber
.
from
(
result
.
l2GasPrice
)
)).
to
.
deep
.
eq
(
l2GasPrice
)
expect
(
BigNumber
.
from
(
result
.
l2GasPrice
)).
to
.
deep
.
eq
(
l2GasPrice
)
})
})
})
})
})
})
packages/core-utils/src/watcher.ts
View file @
bab7797d
...
@@ -87,12 +87,12 @@ export class Watcher {
...
@@ -87,12 +87,12 @@ export class Watcher {
const
successFilter
:
ethers
.
providers
.
Filter
=
{
const
successFilter
:
ethers
.
providers
.
Filter
=
{
address
:
layer
.
messengerAddress
,
address
:
layer
.
messengerAddress
,
topics
:
[
ethers
.
utils
.
id
(
`RelayedMessage(bytes32)`
)],
topics
:
[
ethers
.
utils
.
id
(
`RelayedMessage(bytes32)`
)],
fromBlock
:
startingBlock
fromBlock
:
startingBlock
,
}
}
const
failureFilter
:
ethers
.
providers
.
Filter
=
{
const
failureFilter
:
ethers
.
providers
.
Filter
=
{
address
:
layer
.
messengerAddress
,
address
:
layer
.
messengerAddress
,
topics
:
[
ethers
.
utils
.
id
(
`FailedRelayedMessage(bytes32)`
)],
topics
:
[
ethers
.
utils
.
id
(
`FailedRelayedMessage(bytes32)`
)],
fromBlock
:
startingBlock
fromBlock
:
startingBlock
,
}
}
const
successLogs
=
await
layer
.
provider
.
getLogs
(
successFilter
)
const
successLogs
=
await
layer
.
provider
.
getLogs
(
successFilter
)
const
failureLogs
=
await
layer
.
provider
.
getLogs
(
failureFilter
)
const
failureLogs
=
await
layer
.
provider
.
getLogs
(
failureFilter
)
...
...
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