populus icon indicating copy to clipboard operation
populus copied to clipboard

Extra keys in `$ref` values within configuration should throw an error.

Open pipermerriam opened this issue 8 years ago • 1 comments

  • Populus Version: 1.6.x
  • OS: all

What was wrong?

Any reference in a configuration file which has extra keys should throw an error at the time the configuration file is loaded and validated.

Example: https://gist.github.com/poiresel/0cf1aba442be17fead55c00fb2d3c546#file-populus-json-L110-L115

Cute Animal Picture

2542595839_b138b55cbe

pipermerriam avatar Apr 20 '17 18:04 pipermerriam

Has this been fixed? I get now an error after setting the default account in any chain automatically. The eth.default_account is added exactly as described in this error, so to the reference, not the referred element. If added manually to the referred element, there is no error, but the default account is not set.

raise KeyError("Key '{0}' not found in {1}".format(key, self._wrapped))
KeyError: "Key 'provider.class' not found in {'provider': {'settings': {'port': 49187}}}"

ice09 avatar May 22 '17 22:05 ice09