You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
@metamask/connect-evm 0.9.0
Changed
Migrate metamask_accountsChanged and metamask_chainChanged subscriptions from transport.onNotification() to typed core.on()/core.off(), removing @ts-expect-error suppressions (#230)
Fixed
EIP1193Provider.request() now re-surfaces the original numeric RPC error code as error.code on the thrown error, matching the EIP-1193 error shape expected by dApps, wagmi, and ethers.js. Previously error.code was always undefined. (#232)
@metamask/connect-multichain 0.11.0
Changed
DefaultTransport now forwards all wallet notifications instead of filtering to only metamask_chainChanged and metamask_accountsChanged, matching MWPTransport behavior (#230)
stateChanged is now emitted via the EventEmitter so client.on('stateChanged', cb) fires correctly (#230)
SDKEvents type now includes explicit entries for metamask_accountsChanged, metamask_chainChanged, and stateChanged (#230)
Mark @react-native-async-storage/async-storage peer dependency as optional — web/Node consumers no longer pull in the React Native toolchain (#234)
getInfuraRpcUrls now includes Solana mainnet and devnet CAIP chain IDs in the generated RPC URL map (#235)
Updated infuraRpcUrls to align with Infura's currently supported networks by removing deprecated testnets (Goerli variants, Mumbai, Palm testnet, Aurora) and adding new mainnet/testnet coverage across Base, Blast, zkSync, BSC/opBNB, Scroll, Mantle, Sei, Swellchain, Unichain, Hemi, MegaETH, Monad, and Celo Sepolia (#237)
Fixed
RPCInvokeMethodErr now carries the original numeric RPC code from the wallet (rpcCode) and the original wallet-facing message (rpcMessage) as separate fields, so higher layers can re-surface them without losing them inside internal error formatting. (#232)
RequestRouter now propagates the numeric RPC error code from wallet response errors and transport exceptions into RPCInvokeMethodErr, ensuring the code is not dropped during error wrapping. (#232)
DefaultTransport now attaches the numeric RPC code to errors produced from window.postMessage responses, so it survives the transport boundary. (#232)
@metamask/connect-solana 0.7.0
Added
Add getInfuraRpcUrls({ infuraApiKey, networks }) helper to generate Solana supportedNetworks entries (mainnet/devnet) for createSolanaClient (#235)