Skip to content

Commit 14b0592

Browse files
authored
Merge pull request #5573 from oliveredget/typo
Fix some typos
2 parents e822fc7 + c8803f9 commit 14b0592

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ function addInstance (browser: NightwatchBrowser, address: string, isValidFormat
1919
.waitForElementVisible('.ataddressinput')
2020
.click('.ataddressinput')
2121
.setValue('.ataddressinput', address, function () {
22-
if (!isValidFormat || !isValidChecksum) browser.assert.elementPresent('button[id^="runAndDeployAtAdressButton"]:disabled')
22+
if (!isValidFormat || !isValidChecksum) browser.assert.elementPresent('button[id^="runAndDeployAtAddressButton"]:disabled')
2323
else if (isAbi) {
2424
browser
2525
.click({
26-
selector: '//*[@id="runAndDeployAtAdressButtonContainer"]',
26+
selector: '//*[@id="runAndDeployAtAddressButtonContainer"]',
2727
locateStrategy: 'xpath'
2828
})
2929
.waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]', 5000)
@@ -34,7 +34,7 @@ function addInstance (browser: NightwatchBrowser, address: string, isValidFormat
3434
})
3535
} else {
3636
browser.click({
37-
selector: '//*[@id="runAndDeployAtAdressButtonContainer"]',
37+
selector: '//*[@id="runAndDeployAtAddressButtonContainer"]',
3838
locateStrategy: 'xpath'
3939
})
4040
}

libs/remix-ui/run-tab/src/lib/actions/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ export const setNetworkName = (networkName: string) => setNetworkNameFromProvide
6666
export const updateSelectedContract = (contractName) => setSelectedContract(dispatch, contractName)
6767
export const syncContracts = () => syncContractsInternal(plugin)
6868
export const isValidProxyAddress = (address: string) => isValidContractAddress(plugin, address)
69-
export const isValidProxyUpgrade = (proxyAddress: string, contractName: string, solcInput: SolcInput, solcOutput: SolcOutput, solcVersion: string) => isValidContractUpgrade(plugin, proxyAddress, contractName, solcInput, solcOutput, solcVersion)
69+
export const isValidProxyUpgrade = (proxyAddress: string, contractName: string, solcInput: SolcInput, solcOutput: SolcOutput, solcVersion: string) => isValidContractUpgrade(plugin, proxyAddress, contractName, solcInput, solcOutput, solcVersion)

libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,10 +517,10 @@ export function ContractDropdownUI(props: ContractDropdownProps) {
517517
<div className="pt-2 d-flex flex-column sudapp_button udapp_atAddressSect">
518518
<div className="d-flex flex-row">
519519
<CustomTooltip placement={'top-end'} tooltipClasses="text-wrap text-left" tooltipId="runAndDeployAddresstooltip" tooltipText={atAddressOptions.title}>
520-
<div id="runAndDeployAtAdressButtonContainer" data-title={atAddressOptions.title}>
520+
<div id="runAndDeployAtAddressButtonContainer" data-title={atAddressOptions.title}>
521521
<button
522522
className={atAddressOptions.disabled ? "disabled udapp_atAddress btn btn-sm py-2 btn-primary" : "udapp_atAddress btn btn-sm py-2 btn-primary"}
523-
id="runAndDeployAtAdressButton"
523+
id="runAndDeployAtAddressButton"
524524
disabled={atAddressOptions.disabled}
525525
style={{ border: 'none' }}
526526
onClick={loadFromAddress}

libs/remix-ui/run-tab/src/lib/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export interface ContractDropdownProps {
282282
setSelectedContract: (contractName: string) => void
283283
remixdActivated: boolean,
284284
isValidProxyAddress?: (address: string) => Promise<boolean>,
285-
isValidProxyUpgrade?: (proxyAddress: string, contractName: string, solcInput: SolcInput, solcOuput: SolcOutput, solcVersion: string) => Promise<LayoutCompatibilityReport | { ok: boolean, pass: boolean, warning: boolean }>,
285+
isValidProxyUpgrade?: (proxyAddress: string, contractName: string, solcInput: SolcInput, solcOutput: SolcOutput, solcVersion: string) => Promise<LayoutCompatibilityReport | { ok: boolean, pass: boolean, warning: boolean }>,
286286
proxy: { deployments: { address: string, date: string, contractName: string }[] }
287287
solCompilerVersion: { version: string, canReceive: boolean }
288288
setCompilerVersion: React.Dispatch<React.SetStateAction<{

libs/remix-url-resolver/src/resolve.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ export class RemixURLResolver {
140140
async handleNpmImport(url: string): Promise<HandlerResponse> {
141141
if (!url) throw new Error('url is empty')
142142
let fetchUrl = url
143-
const isVersionned = semverRegex().exec(url.replace(/@/g, '@ ').replace(/\//g, ' /'))
144-
if (this.getDependencies && !isVersionned) {
143+
const isVersioned = semverRegex().exec(url.replace(/@/g, '@ ').replace(/\//g, ' /'))
144+
if (this.getDependencies && !isVersioned) {
145145
try {
146146
const { deps, yarnLock, packageLock } = await this.getDependencies()
147147
let matchLength = 0

0 commit comments

Comments
 (0)