From 52c719d1ac60c5c461e39da8d67b07960785be97 Mon Sep 17 00:00:00 2001 From: Graham Dixon Date: Mon, 6 Dec 2021 15:01:33 +0000 Subject: [PATCH] fix: increase gas-limit for polygon --- app/assets/v2/js/cart-ethereum-polygon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/v2/js/cart-ethereum-polygon.js b/app/assets/v2/js/cart-ethereum-polygon.js index 8da99dc2c45..a9c51819662 100644 --- a/app/assets/v2/js/cart-ethereum-polygon.js +++ b/app/assets/v2/js/cart-ethereum-polygon.js @@ -370,7 +370,7 @@ Vue.component('grantsCartEthereumPolygon', { return; } - let gasLimit = 100000; + let gasLimit = 500000; // If user has enough balance within Polygon, cost equals the minimum amount let { isBalanceSufficient, requiredAmounts } = await this.hasEnoughBalanceInPolygon(); @@ -480,7 +480,7 @@ Vue.component('grantsCartEthereumPolygon', { // check if ProposeGasPrice is min at 100 const overridePolygonGasPrice = Number(document.polygonGasPrice) > 100 ? Number(document.polygonGasPrice) : 100; - + const gasFeeInWei = web3.utils.toWei( (this.polygon.estimatedGasCost * overridePolygonGasPrice).toString(), 'gwei' );