diff --git a/src/embeds/nft-drop.tsx b/src/embeds/nft-drop.tsx index b3c9e27..0a8af09 100644 --- a/src/embeds/nft-drop.tsx +++ b/src/embeds/nft-drop.tsx @@ -352,9 +352,13 @@ const App: React.FC = () => { const colorScheme = urlParams.get("theme") || "light"; const primaryColor = urlParams.get("primaryColor") || "blue"; const secondaryColor = urlParams.get("secondaryColor") || "orange"; + const biconomyApiKey = urlParams.get("biconomyApiKey") || ""; + const biconomyApiId = urlParams.get("biconomyApiId") || ""; const ipfsGateway = parseIpfsGateway(urlParams.get("ipfsGateway") || ""); + console.log({biconomyApiId, biconomyApiKey}) + const sdkOptions = useMemo( () => relayerUrl @@ -363,8 +367,17 @@ const App: React.FC = () => { openzeppelin: { relayerUrl }, }, } + : biconomyApiKey && biconomyApiId + ? { + gasless: { + biconomy: { + apiKey: biconomyApiKey, + apiId: biconomyApiId, + }, + }, + } : undefined, - [relayerUrl], + [relayerUrl, biconomyApiKey, biconomyApiId], ); return (