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
65cb6ccf
Commit
65cb6ccf
authored
Jan 23, 2023
by
Zach Howard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
INF-22 updates batcher and proposer to pass in chainId to signer client
parent
9128801a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
batch_submitter.go
op-batcher/batcher/batch_submitter.go
+1
-1
l2_output_submitter.go
op-proposer/proposer/l2_output_submitter.go
+1
-1
No files found.
op-batcher/batcher/batch_submitter.go
View file @
65cb6ccf
...
...
@@ -57,7 +57,7 @@ func Main(version string) func(cliCtx *cli.Context) error {
signer
:=
func
(
chainID
*
big
.
Int
)
SignerFn
{
return
func
(
ctx
context
.
Context
,
rawTx
types
.
TxData
)
(
*
types
.
Transaction
,
error
)
{
tx
:=
types
.
NewTx
(
rawTx
)
return
signerClient
.
SignTransaction
(
ctx
,
tx
)
return
signerClient
.
SignTransaction
(
ctx
,
chainID
,
tx
)
}
}
bs
,
err
:=
NewBatchSubmitterWithSigner
(
cfg
,
common
.
HexToAddress
(
cfg
.
SignerConfig
.
Address
),
signer
,
l
)
...
...
op-proposer/proposer/l2_output_submitter.go
View file @
65cb6ccf
...
...
@@ -176,7 +176,7 @@ func NewL2OutputSubmitter(cfg CLIConfig, l log.Logger) (*L2OutputSubmitter, erro
if
address
.
String
()
!=
cfg
.
SignerConfig
.
Address
{
return
nil
,
fmt
.
Errorf
(
"attempting to sign for %s, expected %s: "
,
address
,
cfg
.
SignerConfig
.
Address
)
}
return
signerClient
.
SignTransaction
(
ctx
,
tx
)
return
signerClient
.
SignTransaction
(
ctx
,
chainID
,
tx
)
}
}
}
else
{
...
...
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