Skip to content

Commit f50d674

Browse files
committed
text fixes for framework compilation
1 parent ff8ad82 commit f50d674

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ export function ContractDropdownUI (props: ContractDropdownProps) {
250250
}>
251251
<button className="btn d-flex py-0" onClick={_ => props.syncContracts()}>
252252
<i style={{ cursor: 'pointer' }} className="fa fa-refresh mr-2 mt-2" aria-hidden="true"></i>
253-
<label data-id="" className="mt-2">HardHat</label>
254253
</button>
255254
</OverlayTrigger>
256255
</div>

libs/remixd/src/services/foundryClient.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class FoundryClient extends PluginClient {
3636
compile (configPath: string) {
3737
return new Promise((resolve, reject) => {
3838
if (this.readOnly) {
39-
const errMsg = '[Hardhat Compilation]: Cannot compile in read-only mode'
39+
const errMsg = '[Foundry Compilation]: Cannot compile in read-only mode'
4040
return reject(new Error(errMsg))
4141
}
4242
const cmd = `forge build`
@@ -79,7 +79,7 @@ export class FoundryClient extends PluginClient {
7979
}
8080
if (!this.warnlog) {
8181
// @ts-ignore
82-
this.call('terminal', 'log', 'receiving compilation result from foundry')
82+
this.call('terminal', 'log', 'receiving compilation result from Foundry')
8383
this.warnlog = true
8484
}
8585
}
@@ -145,9 +145,9 @@ export class FoundryClient extends PluginClient {
145145
}
146146

147147
async sync () {
148-
console.log('syncing from foundry')
148+
console.log('syncing from Foundry')
149149
this.processArtifact()
150150
// @ts-ignore
151-
this.call('terminal', 'log', 'synced with foundry')
151+
this.call('terminal', 'log', 'synced with Foundry')
152152
}
153153
}

libs/remixd/src/services/hardhatClient.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ export class HardhatClient extends PluginClient {
6868
const contractFilePath = join(this.buildPath, file)
6969
const stat = await fs.stat(contractFilePath)
7070
if (!stat.isDirectory()) continue
71-
console.log('pp ', contractFilePath)
7271
const files = await fs.readdir(contractFilePath)
7372
const compilationResult = {
7473
input: {},
@@ -89,7 +88,7 @@ export class HardhatClient extends PluginClient {
8988
compilationResult.target = jsonStd.sourceName
9089

9190
// this is the full compilation result
92-
console.log('processing hardhat artifact', file)
91+
console.log('Processing Hardhat artifact for file: ', file)
9392
const path = join(contractFilePath, jsonDbg.buildInfo)
9493
const content = await fs.readFile(path, { encoding: 'utf-8' })
9594

@@ -102,7 +101,7 @@ export class HardhatClient extends PluginClient {
102101
}
103102
if (!this.warnLog) {
104103
// @ts-ignore
105-
this.call('terminal', 'log', 'receiving compilation result from hardhat')
104+
this.call('terminal', 'log', 'receiving compilation result from Hardhat')
106105
this.warnLog = true
107106
}
108107
}
@@ -121,10 +120,10 @@ export class HardhatClient extends PluginClient {
121120
}
122121

123122
async sync () {
124-
console.log('syncing from hardhat')
123+
console.log('syncing from Hardhat')
125124
this.processArtifact()
126125
// @ts-ignore
127-
this.call('terminal', 'log', 'synced with hardhat')
126+
this.call('terminal', 'log', 'synced with Hardhat')
128127
}
129128

130129
async feedContractArtifactFile (artifactContent, compilationResultPart) {

libs/remixd/src/services/truffleClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class TruffleClient extends PluginClient {
8282
}
8383
if (!this.warnLog) {
8484
// @ts-ignore
85-
this.call('terminal', 'log', 'receiving compilation result from truffle')
85+
this.call('terminal', 'log', 'receiving compilation result from Truffle')
8686
this.warnLog = true
8787
}
8888
}
@@ -137,9 +137,9 @@ export class TruffleClient extends PluginClient {
137137
}
138138

139139
async sync () {
140-
console.log('syncing from truffle')
140+
console.log('syncing from Truffle')
141141
this.processArtifact()
142142
// @ts-ignore
143-
this.call('terminal', 'log', 'synced with truffle')
143+
this.call('terminal', 'log', 'synced with Truffle')
144144
}
145145
}

0 commit comments

Comments
 (0)