changes for: 1.1.9

This commit is contained in:
Andrei O 2022-12-11 22:25:49 +02:00
parent 640dbd3e4c
commit cd8e6c4411
No known key found for this signature in database
GPG Key ID: B961E5B68389457E
3 changed files with 17 additions and 4 deletions

View File

@ -1,5 +1,13 @@
# Changelog
## Manifest Version 1.1.9
- added proxy in intial stub for send, request, sendAsync for better compatibility
## Manifest Version 1.1.8
- added support to extract private key from seed when adding account
## Manifest Version 1.1.7
- added support for eth get code method

View File

@ -6,8 +6,13 @@
// Add MetamaskAPI STUB for wallets lib to detect wallet exists
window.ethereum = {
isMetaMask: true,
isConnected: () => false
}`;
isConnected: () => true,
request: (a,b,c) => window.ethereum.request(a,b,c),
sendAsync: (a,b,c) => window.ethereum.sendAsync(a,b,c),
send: (a,b,c) => window.ethereum.send(a,b,c),
}
`;
document.documentElement.setAttribute('onreset', metamaskStub);
document.documentElement.dispatchEvent(new CustomEvent('reset'));
document.documentElement.removeAttribute('onreset');

View File

@ -3,8 +3,8 @@
"name": "__MSG_appName__",
"description": "__MSG_appDesc__",
"default_locale": "en",
"version": "1.1.7",
"version_name": "1.1.7",
"version": "1.1.9",
"version_name": "1.1.9",
"icons": {
"16": "assets/extension-icon/wallet_16.png",
"32": "assets/extension-icon/wallet_32.png",