Skip to content

Commit

Permalink
Merge pull request #38 from Synthetixio/dev
Browse files Browse the repository at this point in the history
promote dev to master
  • Loading branch information
drptbl authored Dec 12, 2020
2 parents c8cdc56 + b662255 commit fb89804
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 fb89804

Please sign in to comment.