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.
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.