From f85df66be1817c4b2dd154a780f9f60f78c60fc3 Mon Sep 17 00:00:00 2001 From: eveneast Date: Mon, 15 Apr 2024 15:45:53 +0800 Subject: [PATCH] Fix some typos in comments Signed-off-by: eveneast --- apps/vyper/src/app/utils/compiler.tsx | 2 +- libs/remix-debug/src/solidity-decoder/decodeInfo.ts | 2 +- libs/remix-solidity/src/compiler/compiler-abstract.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/vyper/src/app/utils/compiler.tsx b/apps/vyper/src/app/utils/compiler.tsx index beab5c8661..824c076283 100644 --- a/apps/vyper/src/app/utils/compiler.tsx +++ b/apps/vyper/src/app/utils/compiler.tsx @@ -324,7 +324,7 @@ export async function compileContract(contract: string, compilerUrl: string, set remixClient.changeStatus({ key: 'failed', type: 'error', - title: `1 error occured ${err.message}` + title: `1 error occurred ${err.message}` }) setLoadingSpinnerState && setLoadingSpinnerState(false) diff --git a/libs/remix-debug/src/solidity-decoder/decodeInfo.ts b/libs/remix-debug/src/solidity-decoder/decodeInfo.ts index e137311a34..58884db147 100644 --- a/libs/remix-debug/src/solidity-decoder/decodeInfo.ts +++ b/libs/remix-debug/src/solidity-decoder/decodeInfo.ts @@ -229,7 +229,7 @@ function getEnum (type, stateDefinitions, contractName) { } /** - * retrieve members declared in the given @arg tye + * retrieve members declared in the given @arg type * * @param {String} typeName - name of the struct type (e.g struct ) * @param {Object} stateDefinitions - all state definition given by the AST (including struct and enum type declaration) for all contracts diff --git a/libs/remix-solidity/src/compiler/compiler-abstract.ts b/libs/remix-solidity/src/compiler/compiler-abstract.ts index 52371b1d4f..ecb2af1f0e 100644 --- a/libs/remix-solidity/src/compiler/compiler-abstract.ts +++ b/libs/remix-solidity/src/compiler/compiler-abstract.ts @@ -22,8 +22,8 @@ export class CompilerAbstract { return helper.getContract(name, this.data.contracts) } - visitContracts (calllback) { - return helper.visitContracts(this.data.contracts, calllback) + visitContracts (callback) { + return helper.visitContracts(this.data.contracts, callback) } getData () {