()
| 31 | } |
| 32 | |
| 33 | async confirmContinue(): Promise<void> { |
| 34 | console.log(`Deploying to: ${this.network}`); |
| 35 | console.log(`Deployer address: ${this.deployer}`); |
| 36 | console.log('Deployment configuration'); |
| 37 | console.log('------------------------'); |
| 38 | |
| 39 | for (const param in this.config) { |
| 40 | let value = this.config[param]; |
| 41 | |
| 42 | if (typeof value === 'object') { |
| 43 | value = JSON.stringify(value); |
| 44 | } |
| 45 | |
| 46 | console.log(` ${param}: ${value}`); |
| 47 | } |
| 48 | |
| 49 | const response = await waitForInput('\nDo you want to continue with deployment? y/N\n'); |
| 50 | if (response !== 'y') { |
| 51 | throw new Error('User chose to cancel deployment'); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | recordContract(name: string, address: string): void { |
| 56 | console.log(`Deployed ${name} to ${address}`); |
no test coverage detected