w3wallets 0.7.0 → 0.8.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.js +1 -10
- package/dist/index.mjs +1 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -282,20 +282,11 @@ var Metamask = class extends Wallet {
|
|
|
282
282
|
typeof settingsOrName === "string" ? settingsOrName : settingsOrName.name
|
|
283
283
|
).click();
|
|
284
284
|
}
|
|
285
|
-
// async approve() {
|
|
286
|
-
// return this.usingNotificationPage((p) =>
|
|
287
|
-
// p
|
|
288
|
-
// .locator(
|
|
289
|
-
// '[data-test-id="confirm-footer-button"], [data-test-id="confirm-btn"]',
|
|
290
|
-
// )
|
|
291
|
-
// .click(),
|
|
292
|
-
// );
|
|
293
|
-
// }
|
|
294
285
|
async approve() {
|
|
295
286
|
const p = await this.page.context().newPage();
|
|
296
287
|
await p.goto(`chrome-extension://${this.extensionId}/notification.html`);
|
|
297
288
|
await p.locator(
|
|
298
|
-
'[data-testid="confirm-footer-button"], [data-testid="confirm-btn"]'
|
|
289
|
+
'[data-testid="confirm-footer-button"], [data-testid="confirm-btn"], [data-testid="page-container-footer-next"], [data-testid="confirmation-submit-button"]'
|
|
299
290
|
).click();
|
|
300
291
|
await p.close();
|
|
301
292
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -248,20 +248,11 @@ var Metamask = class extends Wallet {
|
|
|
248
248
|
typeof settingsOrName === "string" ? settingsOrName : settingsOrName.name
|
|
249
249
|
).click();
|
|
250
250
|
}
|
|
251
|
-
// async approve() {
|
|
252
|
-
// return this.usingNotificationPage((p) =>
|
|
253
|
-
// p
|
|
254
|
-
// .locator(
|
|
255
|
-
// '[data-test-id="confirm-footer-button"], [data-test-id="confirm-btn"]',
|
|
256
|
-
// )
|
|
257
|
-
// .click(),
|
|
258
|
-
// );
|
|
259
|
-
// }
|
|
260
251
|
async approve() {
|
|
261
252
|
const p = await this.page.context().newPage();
|
|
262
253
|
await p.goto(`chrome-extension://${this.extensionId}/notification.html`);
|
|
263
254
|
await p.locator(
|
|
264
|
-
'[data-testid="confirm-footer-button"], [data-testid="confirm-btn"]'
|
|
255
|
+
'[data-testid="confirm-footer-button"], [data-testid="confirm-btn"], [data-testid="page-container-footer-next"], [data-testid="confirmation-submit-button"]'
|
|
265
256
|
).click();
|
|
266
257
|
await p.close();
|
|
267
258
|
}
|