Signed-off-by: eveneast <qcqs@foxmail.com>
@ -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)
@ -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 <name>)
* @param {Object} stateDefinitions - all state definition given by the AST (including struct and enum type declaration) for all contracts
@ -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 () {