Skip to content

Commit 333960b

Browse files
authored
Merge pull request #425 from proto-kit/fix/add-mina-network-config
support mina network config
2 parents 24b909f + 7080d34 commit 333960b

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

package-lock.json

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/stack/src/presets/modules/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ export class DefaultConfigs {
374374
return {
375375
BaseLayer: {
376376
network: {
377-
type: "lightnet" as const,
377+
type: config.minaNetwork,
378378
graphql: config.minaNodeGraphqlHost,
379379
archive: config.minaArchiveGraphqlHost,
380380
accountManager: config.minaAccountManagerHost,

packages/stack/src/presets/modules/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export type MetricsEnv = {
2121
tracingUrl: string;
2222
};
2323
export type SettlementEnv = {
24-
minaNetwork: string;
24+
minaNetwork: "lightnet" | "remote";
2525
minaNodeGraphqlHost: string;
2626
minaNodeGraphqlPort: number;
2727
minaArchiveGraphqlHost: string;

0 commit comments

Comments
 (0)