Skip to content

Commit

Permalink
Default param in allowToAddNetwork to object
Browse files Browse the repository at this point in the history
  • Loading branch information
roninjin10 authored Sep 14, 2022
1 parent cb53bbc commit 9d0a7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/metamask.js
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ module.exports = {
);
return true;
},
allowToAddNetwork: async ({ waitForEvent }) => {
allowToAddNetwork: async ({ waitForEvent } = {}) => {
const notificationPage = await playwright.switchToMetamaskNotification();
if (waitForEvent) {
await playwright.waitAndClick(
Expand Down

0 comments on commit 9d0a7ad

Please sign in to comment.