@@ -22,7 +22,7 @@ export interface BaseDeployConfig {
2222// Deploys a contract if it was not deployed before.
2323// It will check for the past deployments in file `cacheFile` against a key
2424// If `cacheKey` is provided it will be used as the key, else it will use
25- // a key - `${chain.getId()}-${artifactName}`
25+ // a - `${chain.getId()}-${artifactName}`
2626export async function deployIfNotCached (
2727 cacheFile : string ,
2828 chain : EvmChain ,
@@ -31,17 +31,16 @@ export async function deployIfNotCached(
3131 deployArgs : any [ ] , // eslint-disable-line @typescript-eslint/no-explicit-any
3232 cacheKey ?: string ,
3333) : Promise < string > {
34- console . log ( "artifactName: " , artifactName ) ;
3534 const runIfNotCached = makeCacheFunction ( cacheFile ) ;
3635 const key = cacheKey ?? `${ chain . getId ( ) } -${ artifactName } ` ;
3736 return runIfNotCached ( key , async ( ) => {
3837 const artifact = JSON . parse (
39- readFileSync ( join ( config . jsonOutputDir , `${ artifactName } .sol/${ artifactName } .json` ) , "utf8" ) ,
38+ readFileSync (
39+ join ( config . jsonOutputDir , `${ artifactName } .sol/${ artifactName } .json` ) ,
40+ "utf8" ,
41+ ) ,
4042 ) ;
4143
42-
43- console . log ( "artifact: " , artifact ) ;
44-
4544 // Handle bytecode which can be either a string or an object with an 'object' property
4645 let bytecode = artifact [ "bytecode" ] ;
4746 if (
0 commit comments