(ctx *cli.Context)
| 223 | } |
| 224 | |
| 225 | func NewSignerConfig(ctx *cli.Context) (signer.SignerFactory, common.Address, error) { |
| 226 | signerConfig := signer.ReadCLIConfig(ctx) |
| 227 | if err := signerConfig.Check(); err != nil { |
| 228 | return nil, common.Address{}, fmt.Errorf("invalid signer flags: %w", err) |
| 229 | } |
| 230 | return signer.SignerFactoryFromConfig(signerConfig) |
| 231 | } |
| 232 | |
| 233 | func NewStorageConfig(ctx *cli.Context, client *ethclient.Client, lg log.Logger) (*storage.StorageConfig, error) { |
| 234 | l1Contract := common.HexToAddress(ctx.GlobalString(flags.StorageL1Contract.Name)) |
no test coverage detected