Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Lbqds committed May 30, 2024
1 parent 4a56ef6 commit 1167a2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/cli/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Settings = unknown> {
networkId?: number
nodeUrl: string
privateKeys: string[] | string
deploymentStatusFile?: string
deploymentFile?: string
confirmations?: number
settings: Settings
}
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ export async function isDevnetLive(): Promise<boolean> {

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`)
}

Expand Down

0 comments on commit 1167a2c

Please sign in to comment.