Skip to content

Commit

Permalink
Fix confirm transaction may not work
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnwang0715 authored Oct 31, 2021
1 parent 7e5a55b commit 44ebb06
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 44ebb06

Please sign in to comment.