Skip to content

Commit

Permalink
Merge pull request #4 from rarimo/fix/optional-lightweight
Browse files Browse the repository at this point in the history
make lightweight_state optional
  • Loading branch information
mhrynenko authored Apr 8, 2024
2 parents b387eba + 5fa0e2b commit dcbf96d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/config/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type ethereum struct {
type RelayerConfig struct {
RPC *ethclient.Client
RegistrationAddress common.Address
LightweightStateAddress common.Address
LightweightStateAddress *common.Address
ChainID *big.Int
PrivateKey *ecdsa.PrivateKey
nonce uint64
Expand All @@ -50,7 +50,7 @@ func (e *ethereum) RelayerConfig() *RelayerConfig {
networkConfig := struct {
RPC *ethclient.Client `fig:"rpc,required"`
RegistrationAddress common.Address `fig:"registration,required"`
LightweightStateAddress common.Address `fig:"lightweight_state,required"`
LightweightStateAddress *common.Address `fig:"lightweight_state"`
PrivateKey *ecdsa.PrivateKey `fig:"private_key"`
VaultAddress string `fig:"vault_address"`
VaultMountPath string `fig:"vault_mount_path"`
Expand Down

0 comments on commit dcbf96d

Please sign in to comment.