Skip to content

Commit

Permalink
Merge pull request #261 from shawnwang0715/patch-3
Browse files Browse the repository at this point in the history
Fix confirm transaction may not work
  • Loading branch information
drptbl authored Nov 1, 2021
2 parents 5984e8a + 44ebb06 commit e3ff82e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commands/metamask.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ module.exports = {
}
// metamask reloads popup after changing a fee, you have to wait for this event otherwise transaction will fail
await puppeteer.metamaskWindow().waitForTimeout(3000);
await notificationPage.waitForFunction(`document.querySelector('${confirmPageElements.gasLimitInput}').value != "0"`);
await puppeteer.waitAndClick(
confirmPageElements.confirmButton,
notificationPage,
Expand Down

0 comments on commit e3ff82e

Please sign in to comment.