w3wallets 0.5.3 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -13,7 +13,7 @@ interface IWallet {
13
13
  }
14
14
 
15
15
  declare abstract class Wallet implements IWallet {
16
- protected page: Page;
16
+ page: Page;
17
17
  protected extensionId: string;
18
18
  constructor(page: Page, extensionId: string);
19
19
  abstract gotoOnboardPage(): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ interface IWallet {
13
13
  }
14
14
 
15
15
  declare abstract class Wallet implements IWallet {
16
- protected page: Page;
16
+ page: Page;
17
17
  protected extensionId: string;
18
18
  constructor(page: Page, extensionId: string);
19
19
  abstract gotoOnboardPage(): Promise<void>;
package/dist/index.js CHANGED
@@ -228,7 +228,9 @@ var Metamask = class extends Wallet {
228
228
  if (nameOrAddress.startsWith("0x"))
229
229
  nameOrAddress = nameOrAddress.slice(0, 7);
230
230
  await this.page.getByTestId("account-menu-icon").click();
231
- await this.page.locator(".multichain-account-menu-popover__list--menu-item").filter({ hasText: nameOrAddress }).filter({ has: this.page.getByTestId("second-currency-display").filter({ hasText: network }) }).click();
231
+ await this.page.locator(".multichain-account-menu-popover__list--menu-item").filter({ hasText: nameOrAddress }).filter({
232
+ has: this.page.getByTestId("second-currency-display").filter({ hasText: network })
233
+ }).click();
232
234
  }
233
235
  async importAccount(privateKey) {
234
236
  await this.page.getByTestId("account-menu-icon").click();
package/dist/index.mjs CHANGED
@@ -194,7 +194,9 @@ var Metamask = class extends Wallet {
194
194
  if (nameOrAddress.startsWith("0x"))
195
195
  nameOrAddress = nameOrAddress.slice(0, 7);
196
196
  await this.page.getByTestId("account-menu-icon").click();
197
- await this.page.locator(".multichain-account-menu-popover__list--menu-item").filter({ hasText: nameOrAddress }).filter({ has: this.page.getByTestId("second-currency-display").filter({ hasText: network }) }).click();
197
+ await this.page.locator(".multichain-account-menu-popover__list--menu-item").filter({ hasText: nameOrAddress }).filter({
198
+ has: this.page.getByTestId("second-currency-display").filter({ hasText: network })
199
+ }).click();
198
200
  }
199
201
  async importAccount(privateKey) {
200
202
  await this.page.getByTestId("account-menu-icon").click();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "w3wallets",
3
3
  "description": "browser wallets for playwright",
4
- "version": "0.5.3",
4
+ "version": "0.6.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "homepage": "https://github.com/Maksandre/w3wallets",