From 451f646fb23cb5a0f7cdadb3d1c4919d1290c990 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 1 Aug 2022 00:06:47 -0400 Subject: [PATCH] *Delete current-round property from response if it exists as it causes problems with deterministic processing --- src/rpc/algorand.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rpc/algorand.ts b/src/rpc/algorand.ts index e9d14d0..4c59518 100644 --- a/src/rpc/algorand.ts +++ b/src/rpc/algorand.ts @@ -95,7 +95,10 @@ export function proxyRestMethod( }; }; - return JSON.parse(JSON.stringify(resp, getCircularReplacer())); + if (resp?.body && "current-round" in resp?.body) { + delete resp?.body["current-round"]; + } + return JSON.parse(JSON.stringify(resp?.body, getCircularReplacer())); }; }