diff --git a/src/abi/main.json b/src/abi/main.json index 6d0babe..7a0fb02 100644 --- a/src/abi/main.json +++ b/src/abi/main.json @@ -189,6 +189,19 @@ "stateMutability": "view", "type": "function" }, + { + "inputs": [], + "name": "mayhem", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, { "inputs": [], "name": "owner", @@ -280,6 +293,13 @@ "stateMutability": "nonpayable", "type": "function" }, + { + "inputs": [], + "name": "toggleMayhem", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ { diff --git a/src/components/Hero.jsx b/src/components/Hero.jsx index c6b49a5..b9ec0aa 100644 --- a/src/components/Hero.jsx +++ b/src/components/Hero.jsx @@ -82,6 +82,7 @@ export function Hero(props) { {...defOpt, functionName: 'unaboomerMaxMintPerWallet'} ], watch: true, + enabled: isConnected, cacheTime: 30_000, onSuccess(data) { handleStateChange({ @@ -106,6 +107,7 @@ export function Hero(props) { {...defOpt, functionName: 'unaboomerBalance', args: [address]} ], watch: true, + enabled: isConnected, cacheTime: 6_000, onSuccess(data) { handleStateChange({ @@ -246,7 +248,7 @@ export function Hero(props) {
{options.unaboomersRadicalized} / {options.unaboomerMaxSupply} minted
diff --git a/src/index.js b/src/index.js index 4bb8f96..9aea12d 100644 --- a/src/index.js +++ b/src/index.js @@ -16,10 +16,10 @@ import { Hero } from "./components/Hero"; import { Footer } from "./components/Footer"; const { chains, provider, webSocketProvider } = configureChains( - [goerli, mainnet, localhost], + [mainnet], [ - infuraProvider({ apiKey: 'e7674eea9d72437d9129b41ed018183d' }), - publicProvider() + publicProvider(), + infuraProvider({ apiKey: 'e7674eea9d72437d9129b41ed018183d' }) ] ); @@ -40,7 +40,7 @@ ReactDOM.createRoot(document.getElementById("root")).render(