Skip to content

Commit

Permalink
fix: fix metamask setting of the network toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
jake4take committed Dec 6, 2024
1 parent 9cd83d9 commit ca09632
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/wallets/src/metamask/metamask.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export class MetamaskPage implements WalletPage {
page: Page | undefined;
header: Header;
homePage: HomePage;
settingsPage: SettingsPage;
loginPage: LoginPage;
walletOperation: WalletOperationPage;
onboardingPage: OnboardingPage;
Expand All @@ -36,11 +35,6 @@ export class MetamaskPage implements WalletPage {
this.page = await this.browserContext.newPage();
this.header = new Header(this.page);
this.homePage = new HomePage(this.page, this.extensionUrl, this.config);
this.settingsPage = new SettingsPage(
this.page,
this.extensionUrl,
this.config,
);
this.loginPage = new LoginPage(this.page, this.config);
this.walletOperation = new WalletOperationPage(this.page);
this.onboardingPage = new OnboardingPage(this.page, this.config);
Expand Down Expand Up @@ -71,7 +65,11 @@ export class MetamaskPage implements WalletPage {
await this.popoverElements.closePopover();
await this.walletOperation.cancelAllTxInQueue(); // reject all tx in queue if exist
}
await this.settingsPage.setupNetworkChangingSetting(); // need to make it possible to change the wallet network
await new SettingsPage(
await this.browserContext.newPage(),
this.extensionUrl,
this.config,
).setupNetworkChangingSetting(); // need to make it possible to change the wallet network
});
}

Expand Down

0 comments on commit ca09632

Please sign in to comment.