Skip to content

Commit

Permalink
fix: bring back old fees
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <jakub.mucha@icloud.com>
  • Loading branch information
drptbl committed Dec 12, 2020
1 parent b8b6121 commit b662255
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions commands/metamask.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const {
permissionsPageElements,
confirmPageElements,
} = require('../pages/metamask/notification-page');
const { setNetwork, getNetwork } = require('../helpers');
const { setNetwork } = require('../helpers');

let walletAddress;

Expand Down Expand Up @@ -126,16 +126,13 @@ module.exports = {
return true;
},
confirmTransaction: async () => {
const isTestnet = getNetwork().isTestnet;
await puppeteer.metamaskWindow().waitForTimeout(3000);
const notificationPage = await puppeteer.switchToMetamaskNotification();
const currentGasFee = await puppeteer.waitAndGetValue(
confirmPageElements.gasFeeInput,
notificationPage,
);
const newGasFee = isTestnet
? '10'
: (Number(currentGasFee) + 10).toString();
const newGasFee = (Number(currentGasFee) + 10).toString();
await puppeteer.waitAndSetValue(
newGasFee,
confirmPageElements.gasFeeInput,
Expand Down

0 comments on commit b662255

Please sign in to comment.