From 0bc6f972b234d7c8a5ed079cc7a34d9b37338f75 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Mon, 29 Jul 2024 13:00:48 -0600 Subject: [PATCH] reserialize getConfig response for backwards compatibility --- .../Adapters/Systems/SystemForEmbassy/__fixtures__/bitcoind.ts | 2 +- .../src/Adapters/Systems/SystemForEmbassy/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/container-runtime/src/Adapters/Systems/SystemForEmbassy/__fixtures__/bitcoind.ts b/container-runtime/src/Adapters/Systems/SystemForEmbassy/__fixtures__/bitcoind.ts index 9a643b39d..1134d198a 100644 --- a/container-runtime/src/Adapters/Systems/SystemForEmbassy/__fixtures__/bitcoind.ts +++ b/container-runtime/src/Adapters/Systems/SystemForEmbassy/__fixtures__/bitcoind.ts @@ -315,7 +315,7 @@ export default { }, }, variants: { - disabled: {}, + disabled: undefined, automatic: { size: { type: "number", diff --git a/container-runtime/src/Adapters/Systems/SystemForEmbassy/index.ts b/container-runtime/src/Adapters/Systems/SystemForEmbassy/index.ts index ff5a6ee74..a7a30c34a 100644 --- a/container-runtime/src/Adapters/Systems/SystemForEmbassy/index.ts +++ b/container-runtime/src/Adapters/Systems/SystemForEmbassy/index.ts @@ -577,7 +577,7 @@ export class SystemForEmbassy implements System { if (!method) throw new Error("Expecting that the method getConfig exists") return (await method(polyfillEffects(effects, this.manifest)).then( (x) => { - if ("result" in x) return x.result + if ("result" in x) return JSON.parse(JSON.stringify(x.result)) if ("error" in x) throw new Error("Error getting config: " + x.error) throw new Error("Error getting config: " + x["error-code"][1]) },