keep-network / keep-common

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

Updated ethereum configuration to support viper #90

Closed nkuba closed 2 years ago

nkuba commented 2 years ago

Refs https://github.com/keep-network/keep-core/pull/3090

In this PR we make changes that are required to use viper for configuration parsing.

The keys in the contracts map have to be lowercased, as viper resolves them that way. We need to flag the Ethereum config's with mapstructure to squash it (see: docs).