Skip to content

Commit 4b8f3c4

Browse files
committed
put artifact to the root
1 parent e0dc22a commit 4b8f3c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ export class CompilerMetadata extends Plugin {
2222
}
2323

2424
_JSONFileName (path, contractName) {
25-
return this.joinPath(path, this.innerPath, contractName + '.json')
25+
return this.joinPath(this.innerPath, contractName + '.json')
2626
}
2727

2828
_MetadataFileName (path, contractName) {
29-
return this.joinPath(path, this.innerPath, contractName + '_metadata.json')
29+
return this.joinPath(this.innerPath, contractName + '_metadata.json')
3030
}
3131

3232
onActivation () {
@@ -53,7 +53,7 @@ export class CompilerMetadata extends Plugin {
5353
// Access each file in build-info, check the input sources
5454
// If they are all same as in current compiled file and sources includes the path of compiled file, remove old build file
5555
async removeStoredBuildInfo (currentInput, path, filePath) {
56-
const buildDir = this.joinPath(path, this.innerPath, 'build-info/')
56+
const buildDir = this.joinPath(this.innerPath, 'build-info/')
5757
if (await this.call('fileManager', 'exists', buildDir)) {
5858
const allBuildFiles = await this.call('fileManager', 'fileList', buildDir)
5959
const currentInputFileNames = Object.keys(currentInput.sources)
@@ -79,7 +79,7 @@ export class CompilerMetadata extends Plugin {
7979
input
8080
})
8181
const id = createHash('md5').update(Buffer.from(json)).digest().toString('hex')
82-
const buildFilename = this.joinPath(path, this.innerPath, 'build-info/' + id + '.json')
82+
const buildFilename = this.joinPath(this.innerPath, 'build-info/' + id + '.json')
8383
// If there are no file in buildInfoNames,it means compilation is running first time after loading Remix
8484
if (!this.buildInfoNames[filePath]) {
8585
// Check the existing build-info and delete all the previous build files for compiled file

0 commit comments

Comments
 (0)