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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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({
|
|
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({
|
|
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();
|