mirror of
https://github.com/lil-org/tokenary.git
synced 2025-01-07 14:10:28 +03:00
Implement Ethereum provider wallet_getPermissions method
This commit is contained in:
parent
6b5c02b905
commit
4b760e60e2
File diff suppressed because one or more lines are too long
@ -203,6 +203,7 @@ class TokenaryEthereum extends EventEmitter {
|
||||
case "wallet_addEthereumChain":
|
||||
case "wallet_switchEthereumChain":
|
||||
case "wallet_requestPermissions":
|
||||
case "wallet_getPermissions":
|
||||
return this._processPayload(payload);
|
||||
case "eth_newFilter":
|
||||
case "eth_newBlockFilter":
|
||||
@ -262,6 +263,7 @@ class TokenaryEthereum extends EventEmitter {
|
||||
case "wallet_switchEthereumChain":
|
||||
return this.wallet_switchEthereumChain(payload);
|
||||
case "wallet_requestPermissions":
|
||||
case "wallet_getPermissions":
|
||||
const permissions = [{"parentCapability": "eth_accounts"}];
|
||||
return this.sendResponse(payload.id, permissions);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user