Merge pull request #2688 from ethereum/web3Provides

Web3 Provider modal for local devmode
pull/5370/head
yann300 5 years ago committed by GitHub
commit ee089f725e
  1. 20
      src/app/tabs/runTab/settings.js

@ -193,15 +193,23 @@ class SettingsUI {
}
web3ProviderDialogBody () {
const thePath = '<path/to/local/folder/for/test/chain>'
return yo`
<div class="">
<span>Note: If you are using </span>
<a href="https://geth.ethereum.org/docs/rpc/server" target="blank">Geth</a>
<span>, please configure it to allow requests from Remix:</span>
Note: To use Geth & https://remix.ethereum.org, configure it to allow requests from Remix:(see <a href="https://geth.ethereum.org/docs/rpc/server" target="_blank">Geth Docs on rpc server</a>)
<div class="border p-1">geth --rpc --rpccorsdomain https://remix.ethereum.org</div>
<br>
To run Remix & a local Geth test node, use this command: (see <a href="https://geth.ethereum.org/getting-started/dev-mode" target="_blank">Geth Docs on Dev mode</a>)
<div class="border p-1">geth --rpc --rpccorsdomain="${window.origin}" --rpcapi web3,eth,debug,personal,net --vmdebug --datadir ${thePath} --dev console</div>
<br>
<br>
<b>WARNING:</b> It is not safe to use the --rpccorsdomain flag with a wildcard: <b>--rpccorsdomain *</b>
<br>
<br>For more info: <a href="https://remix-ide.readthedocs.io/en/latest/run.html#more-about-web3-provider" target="_blank">Remix Docs on Web3 Provider</a>
<br>
<b>geth --rpc --rpccorsdomain https://remix.ethereum.org</b>
<br><br>
<span>Web3 Provider Endpoint</span>
<br>
Web3 Provider Endpoint
</div>
`
}

Loading…
Cancel
Save