Skip to content
Draft
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d1d3ebc
add account upgrade and check status RPC methods
MoMannn Sep 30, 2025
0511ad1
Merge branch 'main' of https://github.com/MetaMask/metamask-extension…
MoMannn Sep 30, 2025
b173723
cast chainId to hex
MoMannn Sep 30, 2025
3f7117f
optimize tests
MoMannn Sep 30, 2025
7c7c089
Merge branch 'main' of https://github.com/MetaMask/metamask-extension…
MoMannn Sep 30, 2025
0890df6
get config via isAtomicBatchSupported
MoMannn Sep 30, 2025
e8ccc03
Merge branch 'main' into feat/account-upgrade-rpc
MoMannn Sep 30, 2025
21dc9b4
use txController
MoMannn Sep 30, 2025
244a65d
Merge branch 'feat/account-upgrade-rpc' of https://github.com/MetaMas…
MoMannn Sep 30, 2025
6f9f1a0
Fix supported chain check
MoMannn Oct 1, 2025
6a001c7
cursor configuration check fix
MoMannn Oct 1, 2025
3a2437c
Merge branch 'main' of https://github.com/MetaMask/metamask-extension…
MoMannn Oct 1, 2025
9e936a5
wait for transaction hash
MoMannn Oct 1, 2025
ab1fdbf
Merge branch 'main' into feat/account-upgrade-rpc
MoMannn Oct 1, 2025
9e4b674
test fix
MoMannn Oct 1, 2025
2703ec4
Merge branch 'feat/account-upgrade-rpc' of https://github.com/MetaMas…
MoMannn Oct 1, 2025
32ca828
Merge branch 'main' into feat/account-upgrade-rpc
MoMannn Oct 2, 2025
928c2c7
update import path
MoMannn Oct 2, 2025
b52fe35
Merge branch 'feat/account-upgrade-rpc' of https://github.com/MetaMas…
MoMannn Oct 2, 2025
4688eff
add null check to getCurrentChainId
MoMannn Oct 2, 2025
60717f2
use getCurrentChainIdForDomain
MoMannn Oct 3, 2025
f7711ca
Move rpc methods to external core package
MoMannn Oct 7, 2025
5ab0a9e
Merge branch 'main' into feat/account-upgrade-rpc
MoMannn Oct 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/scripts/controller-init/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ function getControllerOrThrow<Name extends ControllerName>(
const controller = controllersByName[name];

if (!controller) {
throw new Error(`Controller requested before it was initialized: ${name}`);
throw new Error(
`Controller requested before it was initialized: ${String(name)}`,
);
}

return controller;
Expand Down
2 changes: 2 additions & 0 deletions app/scripts/controllers/permissions/specifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ export const unrestrictedMethods = Object.freeze([
'wallet_registerOnboarding',
'wallet_sendCalls',
'wallet_switchEthereumChain',
'wallet_upgradeAccount',
'wallet_getAccountUpgradeStatus',
'wallet_watchAsset',
'web3_clientVersion',
'web3_sha3',
Expand Down
6 changes: 6 additions & 0 deletions app/scripts/lib/rpc-method-middleware/handlers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ import requestAccounts from './request-accounts';
import sendMetadata from './send-metadata';
import switchEthereumChain from './switch-ethereum-chain';
import watchAsset from './watch-asset';
import {
upgradeAccountHandler,
getAccountUpgradeStatusHandler,
} from './wallet-upgrade-account';

export const handlers = [
addEthereumChain,
getProviderState,
logWeb3ShimUsage,
sendMetadata,
watchAsset,
upgradeAccountHandler,
getAccountUpgradeStatusHandler,
];

export const eip1193OnlyHandlers = [
Expand Down
Loading
Loading