Skip to content

Commit c3c41e6

Browse files
committed
fix bug: should auto generate values in contracts.verification
1 parent 3d43544 commit c3c41e6

3 files changed

Lines changed: 18 additions & 6 deletions

File tree

‎src/commands/setup/db-init.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ export default class SetupDbInit extends Command {
377377
this.log(chalk.blue('First, provide connection information for the database instance. This will only be used for creating users and databases. This information will not be persisted in your configuration repo.'));
378378
const publicHost = await input({ message: 'Enter public PostgreSQL host:', default: 'localhost' })
379379
const publicPort = await input({ message: 'Enter public PostgreSQL port:', default: '5432' })
380-
const pgUser = await input({ message: 'Enter PostgreSQL admin username:', default: 'admin' })
380+
const pgUser = await input({ message: 'Enter PostgreSQL admin username:', default: 'scrolladmin' })
381381
const pgPassword = await password({ message: 'Enter PostgreSQL admin password:' })
382382
const pgDatabase = await input({ message: 'Enter PostgreSQL database name:', default: 'postgres' })
383383

‎src/commands/setup/domains.ts‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,23 @@ export default class SetupDomains extends Command {
457457
delete existingConfig.ingress.L1_EXPLORER_HOST
458458
}
459459

460+
/*
461+
[contracts.verification]
462+
VERIFIER_TYPE_L1 = "blockscout"
463+
VERIFIER_TYPE_L2 = "blockscout"
464+
EXPLORER_URI_L1 = "http://l1-explorer.scrollsdk"
465+
EXPLORER_URI_L2 = "http://blockscout.scrollsdk"
466+
RPC_URI_L1 = "http://l1-devnet.scrollsdk"
467+
RPC_URI_L2 = "http://l2-rpc.scrollsdk"
468+
EXPLORER_API_KEY_L1 = ""
469+
EXPLORER_API_KEY_L2 = ""
470+
*/
471+
existingConfig.contracts.verification.EXPLORER_URI_L1 = domainConfig.EXTERNAL_EXPLORER_URI_L1;
472+
existingConfig.contracts.verification.EXPLORER_URI_L2 = domainConfig.EXTERNAL_EXPLORER_URI_L2;
473+
existingConfig.contracts.verification.RPC_URI_L1 = domainConfig.EXTERNAL_RPC_URI_L1;
474+
existingConfig.contracts.verification.RPC_URI_L2 = domainConfig.EXTERNAL_RPC_URI_L2;
475+
476+
460477
// Convert the updated config back to TOML string
461478
const updatedContent = toml.stringify(existingConfig)
462479

‎src/commands/setup/prep-charts.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,6 @@ export default class SetupPrepCharts extends Command {
333333
{
334334
key: 'INDEXER_SCROLL_L1_RPC',
335335
configKey: 'general.L1_RPC_ENDPOINT'
336-
},
337-
{
338-
key: 'INDEXER_SCROLL_L1_RPC',
339-
configKey: 'L1_RPC_ENDPOINT',
340-
defaultValue: '0'
341336
}
342337

343338

0 commit comments

Comments
 (0)