Skip to content

Commit 51651d9

Browse files
committed
Fix linting
1 parent 90d76a4 commit 51651d9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

libs/remix-core-plugin/src/lib/compiler-artefacts.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
2-
import {Plugin} from '@remixproject/engine'
3-
import {util} from '@remix-project/remix-lib'
4-
import {CompilerAbstract} from '@remix-project/remix-solidity'
2+
import { Plugin } from '@remixproject/engine'
3+
import { util } from '@remix-project/remix-lib'
4+
import { CompilerAbstract } from '@remix-project/remix-solidity'
55

66
const profile = {
77
name: 'compilerArtefacts',
@@ -36,7 +36,7 @@ export class CompilerArtefacts extends Plugin {
3636
const saveCompilationResult = (file, source, languageVersion, data, input?) => {
3737
this.compilersArtefactsPerFile[file] = new CompilerAbstract(languageVersion, data, source, input)
3838
this.compilersArtefacts.__last = this.compilersArtefactsPerFile[file]
39-
this.emit('compilationSaved', {[file]: this.compilersArtefactsPerFile[file]})
39+
this.emit('compilationSaved', { [file]: this.compilersArtefactsPerFile[file] })
4040
}
4141

4242
this.on('solidity', 'compilationFinished', saveCompilationResult)
@@ -156,7 +156,7 @@ export class CompilerArtefacts extends Plugin {
156156
else {
157157
const allContractsData = {}
158158
await this._populateAllContractArtefactsFromFE('contracts', contract, allContractsData)
159-
if (allContractsData[fullyQualifiedName]) return {fullyQualifiedName, artefact: allContractsData[fullyQualifiedName]}
159+
if (allContractsData[fullyQualifiedName]) return { fullyQualifiedName, artefact: allContractsData[fullyQualifiedName] }
160160
else throw new Error(`Could not find artifacts for ${fullyQualifiedName}. Compile contract to generate artifacts.`)
161161
}
162162
} else {
@@ -167,7 +167,7 @@ export class CompilerArtefacts extends Plugin {
167167
await this._populateAllContractArtefactsFromFE('contracts', contractName, contractArtefacts)
168168
keys = Object.keys(contractArtefacts)
169169
}
170-
if (keys.length === 1) return {fullyQualifiedName: keys[0], artefact: contractArtefacts[keys[0]]}
170+
if (keys.length === 1) return { fullyQualifiedName: keys[0], artefact: contractArtefacts[keys[0]] }
171171
else if (keys.length > 1) {
172172
throw new Error(`There are multiple artifacts for contract "${contractName}", please use a fully qualified name.\n
173173
Please replace ${contractName} for one of these options wherever you are trying to read its artifact: \n
@@ -216,7 +216,7 @@ export class CompilerArtefacts extends Plugin {
216216
for (const name of Object.keys(contractsData)) {
217217
const contract = contractsData[name]
218218
if (util.compareByteCode(code, '0x' + contract.evm.deployedBytecode.object)) {
219-
found = {name, contract, file}
219+
found = { name, contract, file }
220220
return true
221221
}
222222
}

0 commit comments

Comments
 (0)