Skip to content

Test Extension for MetaMask connection on MV2 and MV3

Notifications You must be signed in to change notification settings

seaona/test-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Extension

This is a simple extension that can be used for testing the use of MetaMask provider from another extension.

popup

Relevant Code

The extension/src/main.js file contains the necessary code for importing MetaMask provider. We can test the 2 dependencies:

  • metamask-extension-provider (legacy one)
  • @metamask/providers

Setup

  1. Install MetaMask on Chrome
  2. Clone this repository
  3. Change to extension folder and install dependencies cd extension npm i
  4. Build the extension npm run extension
  5. Import extension root folder into Chrome
  6. Click on the Test Extension Icon
  7. Right click on the Test Extension and open the developer console
  8. Click Connect to MetaMask for testing the desired dependency and check the console

About

Test Extension for MetaMask connection on MV2 and MV3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published