Skip to content

Commit f0125d7

Browse files
jannikluhnulope
authored andcommitted
Remove ContractsURL parameter
It's superfluous since we have EthereumURL.
1 parent 51ec557 commit f0125d7

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

rolling-shutter/keyperimpl/gnosis/keyper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func NewKeyper(kpr *Keyper, messagingMiddleware *MessagingMiddleware) (*keyper.K
184184
// keyper set. Otherwise, the syncer will only be initialized once such a keyper set is observed to
185185
// be added, as only then we will know which eon(s) we are responsible for.
186186
func (kpr *Keyper) initSequencerSyncer(ctx context.Context) error {
187-
client, err := ethclient.DialContext(ctx, kpr.config.Gnosis.Node.ContractsURL)
187+
client, err := ethclient.DialContext(ctx, kpr.config.Gnosis.Node.EthereumURL)
188188
if err != nil {
189189
return errors.Wrap(err, "failed to dial Ethereum execution node")
190190
}

rolling-shutter/keyperimpl/snapshot/keyper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (kpr *Keyper) Start(ctx context.Context, runner service.Runner) error {
4343
return errors.Wrap(err, "failed to connect to database")
4444
}
4545

46-
contractsClient, err := ethclient.Dial(kpr.config.Ethereum.ContractsURL)
46+
contractsClient, err := ethclient.Dial(kpr.config.Ethereum.EthereumURL)
4747
if err != nil {
4848
return err
4949
}

rolling-shutter/medley/configuration/ethereum.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ func NewEthnodeConfig() *EthnodeConfig {
1818

1919
type EthnodeConfig struct {
2020
PrivateKey *keys.ECDSAPrivate `shconfig:",required"`
21-
ContractsURL string ` comment:"The JSON RPC endpoint where the contracts are accessible"`
2221
DeploymentDir string ` comment:"Contract source directory"`
2322
EthereumURL string ` comment:"The layer 1 JSON RPC endpoint"`
2423
}
@@ -37,7 +36,6 @@ func (c *EthnodeConfig) Validate() error {
3736

3837
func (c *EthnodeConfig) SetDefaultValues() error {
3938
c.EthereumURL = "http://127.0.0.1:8545/"
40-
c.ContractsURL = "http://127.0.0.1:8555/"
4139
c.DeploymentDir = "./deployments/localhost/"
4240
return nil
4341
}

0 commit comments

Comments
 (0)