Commit 65cb6ccf authored by Zach Howard's avatar Zach Howard

INF-22 updates batcher and proposer to pass in chainId to signer client

parent 9128801a
...@@ -57,7 +57,7 @@ func Main(version string) func(cliCtx *cli.Context) error { ...@@ -57,7 +57,7 @@ func Main(version string) func(cliCtx *cli.Context) error {
signer := func(chainID *big.Int) SignerFn { signer := func(chainID *big.Int) SignerFn {
return func(ctx context.Context, rawTx types.TxData) (*types.Transaction, error) { return func(ctx context.Context, rawTx types.TxData) (*types.Transaction, error) {
tx := types.NewTx(rawTx) 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) bs, err := NewBatchSubmitterWithSigner(cfg, common.HexToAddress(cfg.SignerConfig.Address), signer, l)
......
...@@ -176,7 +176,7 @@ func NewL2OutputSubmitter(cfg CLIConfig, l log.Logger) (*L2OutputSubmitter, erro ...@@ -176,7 +176,7 @@ func NewL2OutputSubmitter(cfg CLIConfig, l log.Logger) (*L2OutputSubmitter, erro
if address.String() != cfg.SignerConfig.Address { if address.String() != cfg.SignerConfig.Address {
return nil, fmt.Errorf("attempting to sign for %s, expected %s: ", address, 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 { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment