Skip to content

Commit bfbbce3

Browse files
Merge pull request #20 from nelitow/nj/fix/general
fix: approve transaction
2 parents 2d0f3ee + 10e8097 commit bfbbce3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

commands/phantom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ module.exports = {
414414
const notificationPage = await playwright.switchToNotification(PROVIDER);
415415
await playwright.waitAndClick(
416416
PROVIDER,
417-
transactionPageElements.buttons.rejectTransaction,
417+
transactionPageElements.buttons.confirmTransaction,
418418
notificationPage,
419419
{ waitForEvent: 'close' },
420420
);

commands/playwright.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ module.exports = {
274274
} else if (retries >= 50) {
275275
retries = 0;
276276
throw new Error(
277-
`[switchToNotification: ${provider}] Max amount of retries to switch to metamask notification window has been reached. It was never found.`,
277+
`[switchToNotification: ${provider}] Max amount of retries to switch to ${provider} notification window has been reached. It was never found.`,
278278
);
279279
}
280280
},

0 commit comments

Comments
 (0)