From 6a3175dc7b336534fdbfdfb55937e5895b967fb6 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 21 Aug 2023 02:50:16 -0400 Subject: [PATCH] fix: ensure chain is uppercase since map is indexed by it --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 22399b4..8df05a2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -40,7 +40,9 @@ async function handleQuery(aq: ActiveQuery) { return; } - const { chain, query, rpcInterface = undefined } = aq.callerInput; + let { chain, query, rpcInterface = undefined } = aq.callerInput; + + chain = chain.toUpperCase(); let lava: LavaSDK;