diff --git a/packages/cli/src/types.ts b/packages/cli/src/types.ts index 22ce58cfa..f30a85329 100644 --- a/packages/cli/src/types.ts +++ b/packages/cli/src/types.ts @@ -33,14 +33,13 @@ import { ContractInstance } from '@alephium/web3' import { getConfigFile, loadConfig } from './utils' -import path from 'path' import { Project } from './project' export interface Network { networkId?: number nodeUrl: string privateKeys: string[] | string - deploymentStatusFile?: string + deploymentFile?: string confirmations?: number settings: Settings } diff --git a/packages/cli/src/utils.ts b/packages/cli/src/utils.ts index 17f232ffa..3adc7e38d 100644 --- a/packages/cli/src/utils.ts +++ b/packages/cli/src/utils.ts @@ -102,8 +102,8 @@ export async function isDevnetLive(): Promise { export function getDeploymentFilePath(configuration: Configuration, networkId: NetworkId): string { const network = getNetwork(configuration, networkId) - return network.deploymentStatusFile - ? network.deploymentStatusFile + return network.deploymentFile + ? network.deploymentFile : path.join(configuration.artifactDir ?? DEFAULT_CONFIGURATION_VALUES.artifactDir, `.deployments.${networkId}.json`) }