title: How to reference LINK token on (forked) development network without "invalid opcode"?
body: <p>I like to run a number of local tests. Everything works well on <code>rinkeby</code> and other test chains. However, the local <code>development</code> chain disagrees with my configuration.
  When I run a forked development network:</p>
  <pre><code>brownie console --network mainnet-fork
  </code></pre>
  <p>The ganache-cli initiates as expected:</p>
  <pre><code>Brownie v1.18.1 - Python development framework for Ethereum
  
  BlockchainProject is the active project.
  
  Launching 'ganache-cli --accounts 10 --hardfork istanbul --fork https://mainnet.infura.io/v3/6a633a4ecae8449abbc69974cdd3a9b9 --gasLimit 12000000 --mnemonic brownie --port 8545 --chainId 1'...
  Brownie environment is ready.
  </code></pre>
  <p>However, even the most simple contract interaction fails:</p>
  <pre><code>&gt;&gt;&gt; link_token = Contract.from_explorer(&quot;0x514910771AF9Ca656af840dff83E8264EcF986CA&quot;)
  Fetching source of 0x514910771AF9Ca656af840dff83E8264EcF986CA from api.etherscan.io...
  &gt;&gt;&gt; accounts[0].balance()
  100000000000000000000
  &gt;&gt;&gt; accounts[1].balance()
  100000000000000000000
  &gt;&gt;&gt; link_token.transfer(accounts[0].address, 100, {'from': accounts[0].address})
  Transaction sent: 0x1542b679e4d09b2f4523427c7f5048ed01ee0d194c34cd27b82bbd177e1b3f23
    Gas price: 0.0 gwei   Gas limit: 12000000   Nonce: 2
    LinkToken.transfer confirmed (invalid opcode)   Block: 14604608   Gas used: 12000000 (100.00%)
  
  &lt;Transaction '0x1542b679e4d09b2f4523427c7f5048ed01ee0d194c34cd27b82bbd177e1b3f23'&gt;
  </code></pre>
  <p>Since the Link token is compiled with an unsupported compiler I do not get any further information on why this results in <code>LinkToken.transfer confirmed (invalid opcode)</code>.</p>
  <p>How do I (correctly) run chainlink code against a forked <code>development</code> network using brownie - am I missing a step such as funding??</p>
  <p>My <code>networks:</code> configuration in <code>brownie-config.yaml</code>:</p>
  <pre><code>networks:
    mainnet-fork:
      vrf_coordinator: '0xf0d54349aDdcf704F77AE15b96510dEA15cb7952'
      link_token: '0x514910771AF9Ca656af840dff83E8264EcF986CA'
      keyhash: '0xAA77729D3466CA35AE8D28B3BBAC7CC36A5031EFDC430821C02BC31A238AF445'
  </code></pre>
  <p>I did try to <code>rm -rf build</code> but that does not change anything.</p>
  <p>System environment:</p>
  <ul>
  <li>Brownie v1.18.1</li>
  <li>Node 8.5.5</li>
  <li>Ganache v7.0.4</li>
  <li>21.3.0 Darwin Kernel Version (macOS 12.2.1)</li>
  <li>Python 3.9.7</li>
  </ul>