Skip to content

Commit

Permalink
♻️ refactor(metamask-legacy): Remove commands/index.js (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception authored Sep 21, 2023
1 parent 36e4c1c commit 6d19132
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
5 changes: 3 additions & 2 deletions examples/metamask-legacy/src/example.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { helpers, metamaskPages } from 'metamask-legacy'
import { helpers, metamask, metamaskPages } from 'metamask-legacy'

console.log(helpers.getCurrentNetwork())
console.log('Current network:', helpers.getCurrentNetwork())
console.log(
'Example selector:',
metamaskPages.mainPage.mainPageElements.importAccount.importButton
)
console.log('MetaMask extension urls:', metamask.extensionUrls())
4 changes: 0 additions & 4 deletions wallets/metamask-legacy/src/commands/index.js

This file was deleted.

5 changes: 3 additions & 2 deletions wallets/metamask-legacy/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as metamask from './commands/metamask.cjs'
import * as playwright from './commands/playwright.cjs'
import * as helpers from './helpers.cjs'
import metamaskPages from './pages/index.js'

export * from './commands/index.js'
export { helpers, metamaskPages }
export { helpers, metamask, playwright, metamaskPages }

0 comments on commit 6d19132

Please sign in to comment.