Skip to content

Commit b6470ed

Browse files
author
ci-bot
committed
rm logs
1 parent 9138e39 commit b6470ed

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

apps/remixdesktop/src/plugins/foundryPlugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,16 @@ class FoundryPluginClient extends ElectronBasePluginRemixdClient {
8585
let error = ''
8686
child.stdout.on('data', async (data) => {
8787
if (data.toString().includes('Error')) {
88-
this.call('terminal', 'log', { type: 'error', value: `[Foundry] ${data.toString()}` })
88+
this.call('terminal', 'log', { type: 'error', value: `${data.toString()}` })
8989
} else {
90-
const msg = `[Foundry] ${data.toString()}`
90+
const msg = `${data.toString()}`
9191
console.log('\x1b[32m%s\x1b[0m', msg)
9292
this.call('terminal', 'log', { type: 'log', value: msg })
9393
}
9494
})
9595
child.stderr.on('data', (err) => {
9696
error += err.toString() + '\n'
97-
this.call('terminal', 'log', { type: 'error', value: `[Foundry] ${err.toString()}` })
97+
this.call('terminal', 'log', { type: 'error', value: `${err.toString()}` })
9898
})
9999
child.on('close', async () => {
100100
const currentFile = await this.call('fileManager', 'getCurrentFile')

apps/remixdesktop/src/plugins/hardhatPlugin.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ class HardhatPluginClient extends ElectronBasePluginRemixdClient {
8080
let error = ''
8181
child.stdout.on('data', (data) => {
8282
if (data.toString().includes('Error')) {
83-
this.call('terminal', 'log', { type: 'error', value: `[Hardhat] ${data.toString()}` })
83+
this.call('terminal', 'log', { type: 'error', value: `${data.toString()}` })
8484
} else {
85-
const msg = `[Hardhat] ${data.toString()}`
85+
const msg = `${data.toString()}`
8686
console.log('\x1b[32m%s\x1b[0m', msg)
8787
this.call('terminal', 'log', { type: 'log', value: msg })
8888
}
8989
})
9090
child.stderr.on('data', (err) => {
9191
error += err.toString() + '\n'
92-
this.call('terminal', 'log', { type: 'error', value: `[Hardhat] ${err.toString()}` })
92+
this.call('terminal', 'log', { type: 'error', value: `${err.toString()}` })
9393
})
9494
child.on('close', async () => {
9595
const currentFile = await this.call('fileManager', 'getCurrentFile')
@@ -100,7 +100,6 @@ class HardhatPluginClient extends ElectronBasePluginRemixdClient {
100100
}
101101

102102
private async emitContract(file: string) {
103-
console.log('emitContract', file, this.buildPath)
104103
const contractFilePath = join(this.buildPath, file)
105104
const stat = await fs.promises.stat(contractFilePath)
106105
if (!stat.isDirectory()) return
@@ -125,7 +124,6 @@ class HardhatPluginClient extends ElectronBasePluginRemixdClient {
125124

126125
const path = join(contractFilePath, jsonDbg.buildInfo)
127126
const content = await fs.promises.readFile(path, { encoding: 'utf-8' })
128-
console.log('Hardhat compilation detected, feeding artifact file', path, content)
129127
await this.feedContractArtifactFile(content, compilationResult)
130128
}
131129
if (compilationResult.target) {
@@ -134,7 +132,6 @@ class HardhatPluginClient extends ElectronBasePluginRemixdClient {
134132
...compilationResult.output,
135133
contracts: { [compilationResult.target]: compilationResult.output.contracts[compilationResult.target] }
136134
}
137-
console.log('Hardhat compilation detected, emitting contract', compilationResult.target, compilationResult)
138135
this.emit('compilationFinished', compilationResult.target, { sources: compilationResult.input }, 'soljson', compilationResult.output, compilationResult.solcVersion)
139136
}
140137
}

0 commit comments

Comments
 (0)