This is a simple extension that can be used for testing the use of MetaMask provider from another extension.
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
- Install MetaMask on Chrome
- Clone this repository
- Change to extension folder and install dependencies
cd extension npm i
- Build the extension
npm run extension
- Import extension root folder into Chrome
- Click on the Test Extension Icon
- Right click on the Test Extension and open the developer console
- Click Connect to MetaMask for testing the desired dependency and check the console