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,