From 9a206a70b4dd90c427ee37d70919fcd4bd12dba3 Mon Sep 17 00:00:00 2001 From: Greg Zaitsev Date: Fri, 26 Jul 2024 14:32:32 -0400 Subject: [PATCH] Fix testnet spec generation (when Alice account already exists) --- .baedeker/up.sh | 3 +++ .baedeker/vendor/baedeker-library/mixin/raw-spec.libsonnet | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.baedeker/up.sh b/.baedeker/up.sh index 164cefa11..2fb3573ca 100755 --- a/.baedeker/up.sh +++ b/.baedeker/up.sh @@ -4,3 +4,6 @@ BDK_DIR=$(dirname $(readlink -f "$0")) RUST_LOG=info baedeker --spec=docker -J$BDK_DIR/vendor/ --generator=docker_compose=$BDK_DIR/.bdk-env --generator=docker_compose_discover=$BDK_DIR/.bdk-env/discover.env --secret=file=$BDK_DIR/.bdk-env/secret --tla-str=relay_spec=rococo-local --input-modules='lib:baedeker-library/ops/nginx.libsonnet' --input-modules='lib:baedeker-library/ops/devtools.libsonnet' --tla-str=repoDir=$(realpath $BDK_DIR/..) $@ $BDK_DIR/rewrites.jsonnet cd $BDK_DIR/.bdk-env #docker compose up -d --wait --remove-orphans + +# patch spec with Alice balance + diff --git a/.baedeker/vendor/baedeker-library/mixin/raw-spec.libsonnet b/.baedeker/vendor/baedeker-library/mixin/raw-spec.libsonnet index 231f5719e..4151c9c52 100644 --- a/.baedeker/vendor/baedeker-library/mixin/raw-spec.libsonnet +++ b/.baedeker/vendor/baedeker-library/mixin/raw-spec.libsonnet @@ -63,7 +63,7 @@ local providers: super?.providers ?? 1, sufficients: super?.sufficients ?? 0, data+: { - free+: std.bigint(1000000000), + free: std.bigint(1000000000), reserved: super?.reserved ?? std.bigint(0), frozen: super?.reserved ?? std.bigint(0), flags: super?.flags ?? std.bigint(0),