From b662255707313e5c6da2cb0397721d8527825126 Mon Sep 17 00:00:00 2001 From: Jakub Mucha Date: Sat, 12 Dec 2020 15:40:35 +0100 Subject: [PATCH] fix: bring back old fees Signed-off-by: Jakub Mucha --- commands/metamask.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/commands/metamask.js b/commands/metamask.js index dd738e05d..e30673c12 100644 --- a/commands/metamask.js +++ b/commands/metamask.js @@ -15,7 +15,7 @@ const { permissionsPageElements, confirmPageElements, } = require('../pages/metamask/notification-page'); -const { setNetwork, getNetwork } = require('../helpers'); +const { setNetwork } = require('../helpers'); let walletAddress; @@ -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,