chore: fix some typos in conments

Signed-off-by: needsure <qinzhipeng@outlook.com>
pull/4701/head
needsure 8 months ago committed by Aniket
parent 82f6b129be
commit addda744cc
  1. 2
      apps/learneth/README.md
  2. 2
      libs/remix-debug/src/cmdline/index.ts
  3. 6
      libs/remix-debug/src/storage/storageViewer.ts
  4. 2
      libs/remix-ui/workspace/src/lib/actions/workspace.ts

@ -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

@ -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

@ -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) {

@ -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)
}

Loading…
Cancel
Save