Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #5556

Merged
merged 3 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libs/remix-ui/run-tab/src/lib/actions/recorder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const storeScenario = async (plugin: RunTab, dispatch: React.Dispatch<any
}

const runScenario = (liveMode: boolean, plugin: RunTab, dispatch: React.Dispatch<any>, file: string, gasEstimationPrompt: (msg: string) => JSX.Element, passphrasePrompt: (msg: string) => JSX.Element, confirmDialogContent: MainnetPrompt) => {
if (!file) return dispatch(displayNotification('Alert', 'Unable to run scenerio, no specified scenario file', 'OK', null))
if (!file) return dispatch(displayNotification('Alert', 'Unable to run scenario, no specified scenario file', 'OK', null))

plugin.fileManager.readFile(file).then((json) => {
// TODO: there is still a UI dependency to remove here, it's still too coupled at this point to remove easily
Expand Down Expand Up @@ -70,4 +70,4 @@ export const runCurrentScenario = (liveMode: boolean, plugin: RunTab, dispatch:

if (!file) return dispatch(displayNotification('Alert', 'A scenario file has to be selected', 'Ok', null))
runScenario(liveMode, plugin, dispatch, file, gasEstimationPrompt, passphrasePrompt, confirmDialogContent)
}
}
2 changes: 1 addition & 1 deletion libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export function ContractGUI(props: ContractGUIProps) {
await handleDeploy()
} else {
// Show log in browser console in case of failure due to unknown reasons
console.log('Failed to run because of EVM version incomaptibility or some other compiler issue')
console.log('Failed to run because of EVM version incompatibility or some other compiler issue')
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions libs/remix-ui/run-tab/src/lib/components/value.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ export function ValueUI(props: ValueProps) {
} catch (e) {
// assign 0 if given value is
// - not valid (for ex 4345-54)
// - contains only '0's (for ex 0000) copy past or edit
// - contains only '0's (for ex 0000) copy paste or edit
inputValue.current.value = '0'
props.setSendValue('0')
}

// if giveen value is negative(possible with copy-pasting) set to 0
// if given value is negative(possible with copy-pasting) set to 0
if (v.lt(0)) {
inputValue.current.value = '0'
props.setSendValue('0')
Expand Down