Skip to content

Commit 3f5e0bd

Browse files
committed
fixup! feat(cli): switching back chainId from 13370 to 31337
1 parent 7570625 commit 3f5e0bd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

apps/cli/src/compose/explorer.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ export const squidProcessorService = (options: ServiceOptions): Service => {
7777
const databaseHost = options.databaseHost ?? "database";
7878
const databasePort = options.databasePort ?? 5432;
7979
const chain = anvil;
80-
const environment: Record<string, string> = {
80+
const environment: Record<string, string | number> = {
8181
DB_HOST: databaseHost,
8282
DB_NAME: "explorer",
8383
DB_PASS: databasePassword,
8484
DB_PORT: databasePort.toString(),
8585
CHAIN_IDS: chain.id.toString(),
8686
};
8787
environment[`RPC_URL_${chain.id}`] = `http://anvil:8545`;
88-
environment[`BLOCK_CONFIRMATIONS_${chain.id}`] = "0";
89-
environment[`GENESIS_BLOCK_${chain.id}`] = "1";
88+
environment[`BLOCK_CONFIRMATIONS_${chain.id}`] = 0;
89+
environment[`GENESIS_BLOCK_${chain.id}`] = 1;
9090

9191
return {
9292
image: `cartesi/rollups-explorer-api:${imageTag}`,
@@ -109,8 +109,9 @@ export const explorerService = (options: ServiceOptions): Service => {
109109
return {
110110
image: `cartesi/rollups-explorer:${imageTag}`,
111111
environment: {
112-
NODE_RPC_URL: nodeRpcUrl,
112+
CHAIN_ID: 31337,
113113
EXPLORER_API_URL: explorerApiUrl,
114+
NODE_RPC_URL: nodeRpcUrl,
114115
},
115116
expose: ["3000"],
116117
depends_on: {

0 commit comments

Comments
 (0)