diff --git a/src/handlers/bridgeworld.js b/src/handlers/bridgeworld.js index 1cbbc4c..d6453fe 100644 --- a/src/handlers/bridgeworld.js +++ b/src/handlers/bridgeworld.js @@ -12,12 +12,11 @@ exports.getMines = getMines; exports.getLegionHolders = getLegionHolders; exports.verifyGenesisLegionHolders = async (event) => { - console.log(event, event?.body, event?.body?.wallet); - const wallets = event?.body?.wallets - ? event.body.wallets - : event?.body?.wallet - ? [event.body.wallet] - : []; + const body = JSON.parse(event.body); + const wallets = (body.wallets || body.wallet || []).map((wallet) => + wallet.toLowerCase() + ); + console.log("Querying Genesis Legion holder status for wallets:", wallets); return { success: await hasGenesisLegion(wallets), };