+ Note: To use Geth & https://remix.ethereum.org, configure it to allow requests from Remix:(see
Geth Docs on rpc server)
+
geth --http --http.corsdomain https://remix.ethereum.org
+
+ To run Remix & a local Geth test node, use this command: (see
Geth Docs on Dev mode)
+
geth --http --http.corsdomain="{window.origin}" --http.api web3,eth,debug,personal,net --vmdebug --datadir {thePath} --dev console
+
+
+
WARNING: It is not safe to use the --http.corsdomain flag with a wildcard:
--http.corsdomain *
+
+
For more info:
Remix Docs on Web3 Provider
+
+
+ Web3 Provider Endpoint
+
+
@@ -197,7 +217,6 @@ export function RunTabUI (props: RunTabProps) {
networkName={runTab.networkName}
personalMode={runTab.personalMode}
selectExEnv={runTab.selectExEnv}
- externalEndpoint={runTab.externalEndpoint}
setWeb3Endpoint={setWeb3Endpoint}
accounts={runTab.accounts}
setAccount={setAccount}
@@ -215,6 +234,7 @@ export function RunTabUI (props: RunTabProps) {
tooltip={toast}
signMessageWithAddress={signMessageWithAddress}
passphrase={runTab.passphrase}
+ web3ProviderDialog={web3Dialog}
/>
void,
- externalEndpoint: string,
createNewBlockchainAccount: (cbMessage: JSX.Element) => void,
setPassphrase: (passphrase: string) => void,
setMatchPassphrase: (passphrase: string) => void,
modal: (title: string, message: string | JSX.Element, okLabel: string, okFn: () => void, cancelLabel?: string, cancelFn?: () => void) => void,
tooltip: (toasterMsg: string) => void,
signMessageWithAddress: (account: string, message: string, modalContent: (hash: string, data: string) => JSX.Element, passphrase?: string) => void,
- passphrase: string
+ passphrase: string,
+ web3ProviderDialog: () => JSX.Element
}
export interface EnvironmentProps {
- setWeb3Endpoint: (endpoint: string) => void,
selectedEnv: string,
providers: {
providerList: {
@@ -62,7 +61,7 @@ export interface EnvironmentProps {
error: string
},
setExecutionContext: (executionContext: { context: string, fork: string }, displayContent: JSX.Element) => void,
- externalEndpoint: string
+ web3ProviderDialog: () => JSX.Element
}
export interface NetworkProps {