fix: ensure chain is uppercase since map is indexed by it

This commit is contained in:
Derrick Hammer 2023-08-21 02:50:16 -04:00
parent 3f5dfd4261
commit 6a3175dc7b
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 1 deletions

View File

@ -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;