@@ -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