Skip to content

Commit

Permalink
fix: hyperchain:configure script should build an array for app config
Browse files Browse the repository at this point in the history
  • Loading branch information
Romsters committed Oct 11, 2023
1 parent df0d8ec commit 49ba6e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/setup-hyperchain-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { prompt } from "enquirer";
import * as dotenv from "dotenv";
import { parse as parseConnectionString } from "pg-connection-string";

const buildAppConfig = (zkSyncEnvs: { [key: string]: string }) => ({
const buildAppConfig = (zkSyncEnvs: { [key: string]: string }) => ([{
networks: {
apiUrl: "http://localhost:3020",
verificationApiUrl: zkSyncEnvs.API_CONTRACT_VERIFICATION_URL || "",
Expand All @@ -19,7 +19,7 @@ const buildAppConfig = (zkSyncEnvs: { [key: string]: string }) => ({
published: true,
rpcUrl: zkSyncEnvs.API_WEB3_JSON_RPC_HTTP_URL || "",
}
});
}]);

const buildWorkerConfig = (zkSyncEnvs: { [key: string]: string }) => {
const dbConfig = parseConnectionString(zkSyncEnvs.DATABASE_URL);
Expand Down

0 comments on commit 49ba6e0

Please sign in to comment.