Skip to content

Commit

Permalink
Merge pull request #16288 from MinaProtocol/georgeee/use-network_id-f…
Browse files Browse the repository at this point in the history
…rom-runtime-config
  • Loading branch information
amc-ie authored Oct 28, 2024
2 parents 2a404f0 + 3e0597b commit d800da8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib/mina_graphql/mina_graphql.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2672,7 +2672,13 @@ module Queries = struct
~args:Arg.[]
~resolve:(fun { ctx = mina; _ } () ->
let cfg = Mina_lib.config mina in
"mina:" ^ cfg.compile_config.network_id )
let runtime_cfg = Mina_lib.runtime_config mina in
let network_id =
Option.value ~default:cfg.compile_config.network_id
@@ let%bind.Option daemon = runtime_cfg.daemon in
daemon.network_id
in
"mina:" ^ network_id )

let signature_kind =
field "signatureKind"
Expand Down

0 comments on commit d800da8

Please sign in to comment.