makerdao / spells-mainnet

Staging repo for MakerDAO weekly executive spells
GNU Affero General Public License v3.0
108 stars 45 forks source link

Source dapprc #192

Closed iamchrissmith closed 2 years ago

iamchrissmith commented 2 years ago

Description

seth chain appears to always source from sethrc if it exports ETH_RPC_URL so we should use the --rpc-url flag for seth chain This prevents hidden defaults.

Test case to show the issue:

  1. define ETH_RPC_URL in your .sethrpc file.
  2. in your terminal export ETH_RPC_URL=a
  3. run make test
  4. You should not get past the check for ETH_RPC_URL && $(seth chain) == "ethlive" but on the main branch you would and the tests will fail because a is not a valid URL.

My concern is that if we export an ETH_RPC_URL but also have one set in sethrc then seth chain would use the sethrc one. This change forces it to use the exported one which is the same thing we are doing for dapp when we actually run the tests.

Contribution Checklist

Checklist