From addda744cc95bb53fb9e3c8c73d76cff3c1cfd6e Mon Sep 17 00:00:00 2001 From: needsure Date: Tue, 9 Apr 2024 17:21:18 +0800 Subject: [PATCH] chore: fix some typos in conments Signed-off-by: needsure --- apps/learneth/README.md | 2 +- libs/remix-debug/src/cmdline/index.ts | 2 +- libs/remix-debug/src/storage/storageViewer.ts | 6 +++--- libs/remix-ui/workspace/src/lib/actions/workspace.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/learneth/README.md b/apps/learneth/README.md index 9bf4030879..aea9d20085 100644 --- a/apps/learneth/README.md +++ b/apps/learneth/README.md @@ -42,7 +42,7 @@ Root directories are individual workshops, the name used will be the name of the ### README.md -The readme in each directry contains an explanation of what the workshop is about. If an additional summary property is provided in the config.yml that will be used in the overview section of the plugin. +The readme in each directory contains an explanation of what the workshop is about. If an additional summary property is provided in the config.yml that will be used in the overview section of the plugin. ### config.yml diff --git a/libs/remix-debug/src/cmdline/index.ts b/libs/remix-debug/src/cmdline/index.ts index b019e7ebd0..2bad4a431e 100644 --- a/libs/remix-debug/src/cmdline/index.ts +++ b/libs/remix-debug/src/cmdline/index.ts @@ -96,7 +96,7 @@ export class CmdLine { this.events.emit('globals', data) }) - // TODO: this doesnt work too well, it should request the data instead... + // TODO: this doesn't work too well, it should request the data instead... this.debugger.vmDebuggerLogic.event.register('solidityLocals', (data) => { if (JSON.stringify(data) === '{}') return this.solidityLocals = data diff --git a/libs/remix-debug/src/storage/storageViewer.ts b/libs/remix-debug/src/storage/storageViewer.ts index ee174d3123..ecdb900f55 100644 --- a/libs/remix-debug/src/storage/storageViewer.ts +++ b/libs/remix-debug/src/storage/storageViewer.ts @@ -67,7 +67,7 @@ export class StorageViewer { /** * return all the possible mappings locations for the current context (cached) do not return state changes during the current transaction * - * @param {Array} corrections - used in case the calculated sha3 has been modifyed before SSTORE (notably used for struct in mapping). + * @param {Array} corrections - used in case the calculated sha3 has been modified before SSTORE (notably used for struct in mapping). */ async initialMappingsLocation (corrections) { if (!this.initialMappingsLocationPromise) { @@ -79,7 +79,7 @@ export class StorageViewer { /** * return all the possible mappings locations for the current context (cached) and current mapping slot. returns state changes during the current transaction * - * @param {Array} corrections - used in case the calculated sha3 has been modifyed before SSTORE (notably used for struct in mapping). + * @param {Array} corrections - used in case the calculated sha3 has been modified before SSTORE (notably used for struct in mapping). */ async mappingsLocation (corrections) { if (!this.currentMappingsLocationPromise) { @@ -94,7 +94,7 @@ export class StorageViewer { /** * retrieve mapping location changes from the storage changes. * @param {Map} storageChanges - * @param {Array} corrections - used in case the calculated sha3 has been modifyed before SSTORE (notably used for struct in mapping). + * @param {Array} corrections - used in case the calculated sha3 has been modified before SSTORE (notably used for struct in mapping). */ extractMappingsLocationChanges (storageChanges, corrections) { if (this.mappingsLocationChanges) { diff --git a/libs/remix-ui/workspace/src/lib/actions/workspace.ts b/libs/remix-ui/workspace/src/lib/actions/workspace.ts index 9376ab30b6..c931a3dd1c 100644 --- a/libs/remix-ui/workspace/src/lib/actions/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/actions/workspace.ts @@ -298,7 +298,7 @@ export const loadWorkspacePreset = async (template: WorkspaceTemplate = 'remixDe } return Object.keys(standardInput.sources)[0] } else { - // preserve JSON whitepsace if this isn't a Solidity compiler JSON-input-output file + // preserve JSON whitespace if this isn't a Solidity compiler JSON-input-output file content = data.content await workspaceProvider.set(path, content) }