diff --git a/libs/remix-ui/run-tab/.eslintrc.json b/libs/remix-ui/run-tab/.eslintrc.json index 8e85d48d01..50e59482cf 100644 --- a/libs/remix-ui/run-tab/.eslintrc.json +++ b/libs/remix-ui/run-tab/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": ["plugin:@nrwl/nx/react", "../../../.eslintrc"], + "extends": ["plugin:@nrwl/nx/react", "../../../.eslintrc.json"], "ignorePatterns": ["!**/*"], "overrides": [ { diff --git a/libs/remix-ui/run-tab/src/lib/actions/index.ts b/libs/remix-ui/run-tab/src/lib/actions/index.ts index 6d7cd6790b..9c0b06e36b 100644 --- a/libs/remix-ui/run-tab/src/lib/actions/index.ts +++ b/libs/remix-ui/run-tab/src/lib/actions/index.ts @@ -328,7 +328,6 @@ const loadContractFromAddress = (address, confirmCb, cb) => { try { abi = JSON.parse(plugin.editor.currentContent()) } catch (e) { - // eslint-disable-next-line standard/no-callback-literal return cb('Failed to parse the current file as JSON ABI.') } _paq.push(['trackEvent', 'udapp', 'AtAddressLoadWithABI']) @@ -654,11 +653,9 @@ const saveScenario = (promptCb, cb) => { const newFile = path + '/' + plugin.REACT_API.recorder.pathToScenario try { const newPath = await createNonClashingNameAsync(newFile, plugin.fileManager) - // eslint-disable-next-line standard/no-callback-literal if (!fileProvider.set(newPath, txJSON)) return cb('Failed to create file ' + newFile) plugin.fileManager.open(newFile) } catch (error) { - // eslint-disable-next-line standard/no-callback-literal if (error) return cb('Failed to create file. ' + newFile + ' ' + error) } }) diff --git a/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx b/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx index 7afc77ee83..acf2e79899 100644 --- a/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx @@ -183,7 +183,7 @@ export function ContractDropdownUI (props: ContractDropdownProps) { return ( It seems you are not using a checksumed address. -
A checksummed address is an address that contains uppercase letters, as specified in EIP-55. +
A checksummed address is an address that contains uppercase letters, as specified in EIP-55.
Checksummed addresses are meant to help prevent users from sending transactions to the wrong address.
) @@ -192,7 +192,7 @@ export function ContractDropdownUI (props: ContractDropdownProps) { const isOverSizePrompt = () => { return (
Contract creation initialization returns data with length of more than 24576 bytes. The deployment will likely fails.
- More info: eip-170 + More info: eip-170
) } diff --git a/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx b/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx index 292c2eeaee..2006999b35 100644 --- a/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx @@ -92,7 +92,7 @@ export function ContractGUI (props: ContractGUIProps) { let ret = '' const valArrayTest = [] - for (var j = 0; j < valArray.length; j++) { + for (let j = 0; j < valArray.length; j++) { if (ret !== '') ret += ',' let elVal = valArray[j] ? valArray[j].value : '' diff --git a/libs/remix-ui/run-tab/src/lib/components/environment.tsx b/libs/remix-ui/run-tab/src/lib/components/environment.tsx index 852d376d8f..29a9d7fc58 100644 --- a/libs/remix-ui/run-tab/src/lib/components/environment.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/environment.tsx @@ -30,7 +30,7 @@ export function EnvironmentUI (props: EnvironmentProps) { ) } - + ) diff --git a/libs/remix-ui/run-tab/src/lib/components/mainnet.tsx b/libs/remix-ui/run-tab/src/lib/components/mainnet.tsx index a848c33af0..30da897734 100644 --- a/libs/remix-ui/run-tab/src/lib/components/mainnet.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/mainnet.tsx @@ -116,7 +116,7 @@ export function MainnetPrompt (props: MainnetProps) { :
Gas price: onGasPriceChange(e.target.value)} /> - Gwei (visit ethgasstation.info for current gas price info.) + Gwei (visit ethgasstation.info for current gas price info.)
}
diff --git a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx index 6388b07048..8c3bc9df2d 100644 --- a/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx @@ -273,7 +273,7 @@ export function UniversalDappUI (props: UdappProps) { diff --git a/libs/remix-ui/run-tab/src/lib/components/web3Dialog.tsx b/libs/remix-ui/run-tab/src/lib/components/web3Dialog.tsx index 3ab0ea8c15..30055f322a 100644 --- a/libs/remix-ui/run-tab/src/lib/components/web3Dialog.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/web3Dialog.tsx @@ -15,16 +15,16 @@ export function Web3ProviderDialog (props: web3ProviderDialogProps) { return ( <>
- Note: To use Geth & https://remix.ethereum.org, configure it to allow requests from Remix:(see Geth Docs on rpc server) + 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) + 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 +
For more info: Remix Docs on Web3 Provider

Web3 Provider Endpoint diff --git a/package.json b/package.json index 0a838a7a40..b77cbf7046 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "workspace-schematic": "nx workspace-schematic", "dep-graph": "nx dep-graph", "help": "nx help", - "lint:libs": "nx run-many --target=lint --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver,remixd,remix-ui-tree-view,remix-ui-modal-dialog,remix-ui-toaster,remix-ui-helper,remix-ui-debugger-ui,remix-ui-workspace,remix-ui-static-analyser,remix-ui-checkbox,remix-ui-settings,remix-core-plugin,remix-ui-renderer,remix-ui-publish-to-storage,remix-ui-solidity-compiler,solidity-unit-testing,remix-ui-plugin-manager,remix-ui-terminal,remix-ui-editor,remix-ui-app,remix-ui-tabs,remix-ui-panel", + "lint:libs": "nx run-many --target=lint --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver,remixd,remix-ui-tree-view,remix-ui-modal-dialog,remix-ui-toaster,remix-ui-helper,remix-ui-debugger-ui,remix-ui-workspace,remix-ui-static-analyser,remix-ui-checkbox,remix-ui-settings,remix-core-plugin,remix-ui-renderer,remix-ui-publish-to-storage,remix-ui-solidity-compiler,solidity-unit-testing,remix-ui-plugin-manager,remix-ui-terminal,remix-ui-editor,remix-ui-app,remix-ui-tabs,remix-ui-panel,remix-ui-run-tabs", "build:libs": "nx run-many --target=build --parallel=false --with-deps=true --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver,remixd", "test:libs": "nx run-many --target=test --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver,remixd", "publish:libs": "npm run build:libs && lerna publish --skip-git && npm run bumpVersion:libs",