pull/4130/head
xiaolou86 1 year ago
parent db9480d43e
commit 482b23f2f3
  1. 2
      apps/remix-ide/src/app/tabs/network-module.js
  2. 12
      libs/remix-analyzer/src/solidity-analyzer/modules/staticAnalysisCommon.ts
  3. 2
      libs/remix-astwalker/src/sourceMappings.ts
  4. 4
      libs/remix-astwalker/src/types.ts
  5. 2
      libs/remix-lib/src/execution/txListener.ts
  6. 2
      libs/remix-lib/src/execution/txRunnerVM.ts

@ -53,7 +53,7 @@ export class NetworkModule extends Plugin {
this.blockchain.addProvider({ name: network.name, provider }) this.blockchain.addProvider({ name: network.name, provider })
} }
/** Remove a network to the list of availble networks */ /** Remove a network to the list of available networks */
removeNetwork (name) { removeNetwork (name) {
this.blockchain.removeProvider(name) this.blockchain.removeProvider(name)
} }

@ -427,7 +427,7 @@ function getLibraryCallMemberName (funcCall: FunctionCallAstNode): string {
* function baz() { * function baz() {
* bar(10) => foo.bar(uint) * bar(10) => foo.bar(uint)
* @func {ASTNode} function call node * @func {ASTNode} function call node
* @func {ASTNode} contract defintion * @func {ASTNode} contract definition
* @return {string} full qualified identifier for the function call * @return {string} full qualified identifier for the function call
*/ */
function getFullQualifiedFunctionCallIdent (contract: ContractDefinitionAstNode, func: FunctionCallAstNode): string { function getFullQualifiedFunctionCallIdent (contract: ContractDefinitionAstNode, func: FunctionCallAstNode): string {
@ -468,8 +468,8 @@ function isStatement (node: any): boolean {
// #################### Complex Node Identification // #################### Complex Node Identification
/** /**
* True if function defintion has function body * True if function definition has function body
* @funcNode {ASTNode} function defintion node * @funcNode {ASTNode} function definition node
* @return {bool} * @return {bool}
*/ */
function hasFunctionBody (funcNode: FunctionDefinitionAstNode): boolean { function hasFunctionBody (funcNode: FunctionDefinitionAstNode): boolean {
@ -630,7 +630,7 @@ function isStateVariable (name: string, stateVariables: VariableDeclarationAstNo
} }
/** /**
* True if is function defintion that is flaged as constant * True if is function definition that is flaged as constant
* @node {ASTNode} some AstNode * @node {ASTNode} some AstNode
* @return {bool} * @return {bool}
*/ */
@ -648,7 +648,7 @@ function isVariableTurnedIntoGetter (varDeclNode: VariableDeclarationAstNode): b
} }
/** /**
* True if is function defintion has payable modifier * True if is function definition has payable modifier
* @node {ASTNode} some AstNode * @node {ASTNode} some AstNode
* @return {bool} * @return {bool}
*/ */
@ -743,7 +743,7 @@ function isFullyImplementedContract (node: ContractDefinitionAstNode): boolean {
} }
/** /**
* True if it is a library contract defintion * True if it is a library contract definition
* @node {ASTNode} some AstNode * @node {ASTNode} some AstNode
* @return {bool} * @return {bool}
*/ */

@ -56,7 +56,7 @@ export function sourceLocationFromSrc (src: string): Location {
/** /**
* Routines for retrieving solc AST object(s) using some criteria, usually * Routines for retrieving solc AST object(s) using some criteria, usually
* includng "src' information. * including "src' information.
*/ */
// eslint-disable-next-line no-redeclare // eslint-disable-next-line no-redeclare
export class SourceMappings { export class SourceMappings {

@ -6,7 +6,7 @@ export interface Location {
file: number; // Would it be clearer to call this a file index? file: number; // Would it be clearer to call this a file index?
} }
// This is intended to be compatibile with VScode's Position. // This is intended to be compatible with VScode's Position.
// However it is pretty common with other things too. // However it is pretty common with other things too.
// Note: File index is missing here // Note: File index is missing here
export interface LineColPosition { export interface LineColPosition {
@ -14,7 +14,7 @@ export interface LineColPosition {
readonly character: number; readonly character: number;
} }
// This is intended to be compatibile with vscode's Range // This is intended to be compatible with vscode's Range
// However it is pretty common with other things too. // However it is pretty common with other things too.
// Note: File index is missing here // Note: File index is missing here
export interface LineColRange { export interface LineColRange {

@ -36,7 +36,7 @@ export class TxListener {
constructor (opt, executionContext) { constructor (opt, executionContext) {
this.event = new EventManager() this.event = new EventManager()
// has a default for now for backwards compatability // has a default for now for backwards compatibility
this.executionContext = executionContext this.executionContext = executionContext
this._api = opt.api this._api = opt.api
this._resolvedTransactions = {} this._resolvedTransactions = {}

@ -34,7 +34,7 @@ export class TxRunnerVM {
constructor (vmaccounts, api, getVMObject) { constructor (vmaccounts, api, getVMObject) {
this.event = new EventManager() this.event = new EventManager()
this.logsManager = new LogsManager() this.logsManager = new LogsManager()
// has a default for now for backwards compatability // has a default for now for backwards compatibility
this.getVMObject = getVMObject this.getVMObject = getVMObject
this.commonContext = this.getVMObject().common this.commonContext = this.getVMObject().common
this.blockNumber = 0 this.blockNumber = 0

Loading…
Cancel
Save