MCPcopy Create free account
hub / github.com/dcgtc/dgrants / confirmContinue

Method confirmContinue

contracts/scripts/ScriptLogger.ts:33–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

deploy-poc.tsFile · 0.80
update-round.tsFile · 0.80

Calls 1

waitForInputFunction · 0.70

Tested by

no test coverage detected