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
4cf68ade
Commit
4cf68ade
authored
Aug 02, 2021
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l2geth: rollup client style
Small style fix in the rollup client Co-authored-by: r1cs
parent
01679a41
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
selfish-chairs-thank.md
.changeset/selfish-chairs-thank.md
+5
-0
client.go
l2geth/rollup/client.go
+4
-3
No files found.
.changeset/selfish-chairs-thank.md
0 → 100644
View file @
4cf68ade
---
'
@eth-optimism/l2geth'
:
patch
---
Style fix in the
`RollupClient`
l2geth/rollup/client.go
View file @
4cf68ade
...
@@ -331,11 +331,12 @@ func batchedTransactionToTransaction(res *transaction, signer *types.EIP155Signe
...
@@ -331,11 +331,12 @@ func batchedTransactionToTransaction(res *transaction, signer *types.EIP155Signe
// The queue origin must be either sequencer of l1, otherwise
// The queue origin must be either sequencer of l1, otherwise
// it is considered an unknown queue origin and will not be processed
// it is considered an unknown queue origin and will not be processed
var
queueOrigin
types
.
QueueOrigin
var
queueOrigin
types
.
QueueOrigin
if
res
.
QueueOrigin
==
sequencer
{
switch
res
.
QueueOrigin
{
case
sequencer
:
queueOrigin
=
types
.
QueueOriginSequencer
queueOrigin
=
types
.
QueueOriginSequencer
}
else
if
res
.
QueueOrigin
==
l1
{
case
l1
:
queueOrigin
=
types
.
QueueOriginL1ToL2
queueOrigin
=
types
.
QueueOriginL1ToL2
}
else
{
default
:
return
nil
,
fmt
.
Errorf
(
"Unknown queue origin: %s"
,
res
.
QueueOrigin
)
return
nil
,
fmt
.
Errorf
(
"Unknown queue origin: %s"
,
res
.
QueueOrigin
)
}
}
// Transactions that have been decoded are
// Transactions that have been decoded are
...
...
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