From 2eb00020944759dae1c5b10bac812c3923fd8d55 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Tue, 3 Jan 2023 21:27:15 -0800 Subject: [PATCH] adjust --- src/template/Sections.jsx | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/src/template/Sections.jsx b/src/template/Sections.jsx index 95aede4..b2ebc8a 100644 --- a/src/template/Sections.jsx +++ b/src/template/Sections.jsx @@ -333,16 +333,10 @@ function Section3() { const sendBombsPrepare = usePrepareContractWrite({ address: contractAddress, abi: MainABI, - enabled: isConnected && options.bombBalance > 0, + enabled: isConnected, staleTime: 2_000, functionName: 'sendBombs', - args: [options.sendBombAmount], - onError(err) { - // console.log(err.message); - const iface = new ethers.utils.Interface(MainABI); - const res = iface.decodeFunctionData(err.message) - console.log(res); - } + args: [options.sendBombAmount] }); const sendBombsWrite = useContractWrite(sendBombsPrepare.config); useWaitForTransaction({ @@ -377,16 +371,12 @@ function Section3() {

Radicalizing a boomer will mint ERC-721 BOOMR tokens with images of a pixel art Web3 Unaboomers.

You have {options.unaboomerBalance} BOOMR

- {options.unaboomerSupply < options.unaboomerMaxSupply && ( - <> -

- radicalizeBoomersWrite.write?.()}> - {radicalizeBoomersWrite.isLoading && <>minting {options.unaboomerAmount} || <>mint {options.unaboomerPreviewAmount} ({ethers.utils.formatEther((options.unaboomerPrice * options.unaboomerPreviewAmount).toString())} Ξ)} - -

- handleStateChange({unaboomerAmount: v})} onChange={(v) => handleStateChange({unaboomerPreviewAmount: v})} /> - - )} +

+ radicalizeBoomersWrite.write?.()}> + {radicalizeBoomersWrite.isLoading && <>minting {options.unaboomerAmount} || <>mint {options.unaboomerPreviewAmount} ({ethers.utils.formatEther((options.unaboomerPrice * options.unaboomerPreviewAmount).toString())} Ξ)} + +

+ handleStateChange({unaboomerAmount: v})} onChange={(v) => handleStateChange({unaboomerPreviewAmount: v})} />

Assemble Bombs