keep-network / keep-common

Common libraries and tools used across Keep repositories
MIT License
5 stars 14 forks source link

Modify reading ethereum config in the command #101

Closed nkuba closed 2 years ago

nkuba commented 2 years ago

We need to initialize a connection to the Ethereum chain as part of the contract handle initialization.

In V1 we were using config.GetEthereumConfig function with passing a path to the config file.

In V2 we added support for CLI flags for configuring properties.

The previous solution had difficulties due to the complexity of different levels at which the flags were defined for commands. From the generated code perspective we don't want to go much into the commands structure and implementation. We expect the parent command to expose the config for initialization.