From c2d280ec9366247348ea40973755a0b354e3a0d1 Mon Sep 17 00:00:00 2001 From: Michael Venema Date: Sat, 2 Apr 2022 11:01:17 -0700 Subject: [PATCH] Suggest better gas Fee's Suggests better gas fee's so users do not need to manually change gas to mint. Added maxFeePerGas and maxPriorityFeePerGas to the mint contract call with a value of 33 wei --- src/App.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App.js b/src/App.js index f2d22e687..db0cfbcdf 100644 --- a/src/App.js +++ b/src/App.js @@ -123,6 +123,7 @@ function App() { const claimNFTs = () => { let cost = CONFIG.WEI_COST; let gasLimit = CONFIG.GAS_LIMIT; + let baseFee = String(33000000000); let totalCostWei = String(cost * mintAmount); let totalGasLimit = String(gasLimit * mintAmount); console.log("Cost: ", totalCostWei); @@ -133,6 +134,8 @@ function App() { .mint(mintAmount) .send({ gasLimit: String(totalGasLimit), + maxFeePerGas: baseFee, + maxPriorityFeePerGas: baseFee, to: CONFIG.CONTRACT_ADDRESS, from: blockchain.account, value: totalCostWei,