Skip to content

Commit

Permalink
fix: increase gas-limit for polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
gdixon committed Dec 6, 2021
1 parent ba3d1c7 commit 52c719d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/v2/js/cart-ethereum-polygon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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'
);
Expand Down

0 comments on commit 52c719d

Please sign in to comment.