text fixes for framework compilation

pull/2974/head
Aniket-Engg 2 years ago committed by Aniket
parent ff8ad82711
commit f50d674281
  1. 1
      libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx
  2. 8
      libs/remixd/src/services/foundryClient.ts
  3. 9
      libs/remixd/src/services/hardhatClient.ts
  4. 6
      libs/remixd/src/services/truffleClient.ts

@ -250,7 +250,6 @@ export function ContractDropdownUI (props: ContractDropdownProps) {
}>
<button className="btn d-flex py-0" onClick={_ => props.syncContracts()}>
<i style={{ cursor: 'pointer' }} className="fa fa-refresh mr-2 mt-2" aria-hidden="true"></i>
<label data-id="" className="mt-2">HardHat</label>
</button>
</OverlayTrigger>
</div>

@ -36,7 +36,7 @@ export class FoundryClient extends PluginClient {
compile (configPath: string) {
return new Promise((resolve, reject) => {
if (this.readOnly) {
const errMsg = '[Hardhat Compilation]: Cannot compile in read-only mode'
const errMsg = '[Foundry Compilation]: Cannot compile in read-only mode'
return reject(new Error(errMsg))
}
const cmd = `forge build`
@ -79,7 +79,7 @@ export class FoundryClient extends PluginClient {
}
if (!this.warnlog) {
// @ts-ignore
this.call('terminal', 'log', 'receiving compilation result from foundry')
this.call('terminal', 'log', 'receiving compilation result from Foundry')
this.warnlog = true
}
}
@ -145,9 +145,9 @@ export class FoundryClient extends PluginClient {
}
async sync () {
console.log('syncing from foundry')
console.log('syncing from Foundry')
this.processArtifact()
// @ts-ignore
this.call('terminal', 'log', 'synced with foundry')
this.call('terminal', 'log', 'synced with Foundry')
}
}

@ -68,7 +68,6 @@ export class HardhatClient extends PluginClient {
const contractFilePath = join(this.buildPath, file)
const stat = await fs.stat(contractFilePath)
if (!stat.isDirectory()) continue
console.log('pp ', contractFilePath)
const files = await fs.readdir(contractFilePath)
const compilationResult = {
input: {},
@ -89,7 +88,7 @@ export class HardhatClient extends PluginClient {
compilationResult.target = jsonStd.sourceName
// this is the full compilation result
console.log('processing hardhat artifact', file)
console.log('Processing Hardhat artifact for file: ', file)
const path = join(contractFilePath, jsonDbg.buildInfo)
const content = await fs.readFile(path, { encoding: 'utf-8' })
@ -102,7 +101,7 @@ export class HardhatClient extends PluginClient {
}
if (!this.warnLog) {
// @ts-ignore
this.call('terminal', 'log', 'receiving compilation result from hardhat')
this.call('terminal', 'log', 'receiving compilation result from Hardhat')
this.warnLog = true
}
}
@ -121,10 +120,10 @@ export class HardhatClient extends PluginClient {
}
async sync () {
console.log('syncing from hardhat')
console.log('syncing from Hardhat')
this.processArtifact()
// @ts-ignore
this.call('terminal', 'log', 'synced with hardhat')
this.call('terminal', 'log', 'synced with Hardhat')
}
async feedContractArtifactFile (artifactContent, compilationResultPart) {

@ -82,7 +82,7 @@ export class TruffleClient extends PluginClient {
}
if (!this.warnLog) {
// @ts-ignore
this.call('terminal', 'log', 'receiving compilation result from truffle')
this.call('terminal', 'log', 'receiving compilation result from Truffle')
this.warnLog = true
}
}
@ -137,9 +137,9 @@ export class TruffleClient extends PluginClient {
}
async sync () {
console.log('syncing from truffle')
console.log('syncing from Truffle')
this.processArtifact()
// @ts-ignore
this.call('terminal', 'log', 'synced with truffle')
this.call('terminal', 'log', 'synced with Truffle')
}
}

Loading…
Cancel
Save