From 150ab8a356d5d58f89708a2bd79f8185986bc91e Mon Sep 17 00:00:00 2001 From: Gergely Lovas Date: Tue, 26 Nov 2024 14:48:35 +0100 Subject: [PATCH] feat: open up avalanche methods --- .../connections/middlewares/PermissionMiddleware.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/background/connections/middlewares/PermissionMiddleware.ts b/src/background/connections/middlewares/PermissionMiddleware.ts index 1bf45a86..9fdb5f10 100644 --- a/src/background/connections/middlewares/PermissionMiddleware.ts +++ b/src/background/connections/middlewares/PermissionMiddleware.ts @@ -91,6 +91,10 @@ export const UNRESTRICTED_METHODS = Object.freeze([ 'avalanche_getIsDefaultExtensionState', 'avalanche_selectWallet', DAppProviderRequest.AVALANCHE_GET_ADDRESSES_IN_RANGE, + DAppProviderRequest.AVALANCHE_SEND_TRANSACTION, + DAppProviderRequest.AVALANCHE_SIGN_TRANSACTION, + DAppProviderRequest.AVALANCHE_SIGN_MESSAGE, + DAppProviderRequest.AVALANCHE_GET_ACCOUNT_PUB_KEY, ]); const CORE_METHODS = Object.freeze([ @@ -104,10 +108,6 @@ const CORE_METHODS = Object.freeze([ 'avalanche_selectAccount', 'avalanche_setDeveloperMode', DAppProviderRequest.ACCOUNT_RENAME, - DAppProviderRequest.AVALANCHE_SEND_TRANSACTION, - DAppProviderRequest.AVALANCHE_SIGN_TRANSACTION, - DAppProviderRequest.AVALANCHE_SIGN_MESSAGE, - DAppProviderRequest.AVALANCHE_GET_ACCOUNT_PUB_KEY, DAppProviderRequest.BITCOIN_SEND_TRANSACTION, DAppProviderRequest.WALLET_GET_CHAIN, DAppProviderRequest.WALLET_RENAME,