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 && ( - <> -
-
+