Skip to content

Commit

Permalink
Web3 Provider modal for local devmode
Browse files Browse the repository at this point in the history
  • Loading branch information
ryestew committed Mar 31, 2020
1 parent 78f7173 commit a24dfd7
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/app/tabs/runTab/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 locally & 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="package://a7df6d3c223593f3550b35e90d7b0b1f.mod" --rpcapi web3,eth,debug,personal,net --vmdebug --datadir ${thePath} --dev console</div>
<br>
<br>
<b>WARNING:</b> When using Remix, 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>
`
}
Expand Down

0 comments on commit a24dfd7

Please sign in to comment.