diff --git a/package.json b/package.json index 4b6297e..b2ef2ac 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "@lavamoat/allow-scripts": "^3.0.4", "@lavamoat/preinstall-always-fail": "^2.0.0", "@metamask/auto-changelog": "^5.0.1", - "@metamask/multichain-api-client": "^0.6.1", + "@metamask/multichain-api-client": "^0.8.0", "@ts-bridge/cli": "^0.6.3", "@types/node": "^22.13.13", "@vitest/coverage-istanbul": "^3.0.7", diff --git a/src/wallet.ts b/src/wallet.ts index 7c167bf..12016c8 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -230,7 +230,7 @@ export class MetamaskWallet implements Wallet { this.#removeAccountsChangedListener = undefined; this.#emit('change', { accounts: this.accounts }); if (revokeSession) { - await this.client.revokeSession(); + await this.client.revokeSession({ scopes: [Scope.MAINNET, Scope.DEVNET, Scope.TESTNET] }); } }; diff --git a/yarn.lock b/yarn.lock index 74fdbe2..242c7e8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -637,10 +637,10 @@ __metadata: languageName: node linkType: hard -"@metamask/multichain-api-client@npm:^0.6.1": - version: 0.6.4 - resolution: "@metamask/multichain-api-client@npm:0.6.4" - checksum: 10/fb43965c0f994047006364555bb07777135a3baf0865948ff2982120ef62cc006d058594fe7c6320a2a29b185998de35b5c40e109388a0edef236371ed01c067 +"@metamask/multichain-api-client@npm:^0.8.0": + version: 0.8.0 + resolution: "@metamask/multichain-api-client@npm:0.8.0" + checksum: 10/73a9cc74c9bc8d20423535a28f690818a82d81ad76077670a4968e6322b8364f70c3fab40558fae79028f9003766cd0eeaada2cefd39042a1df4d327a22cb2f8 languageName: node linkType: hard @@ -653,7 +653,7 @@ __metadata: "@lavamoat/allow-scripts": "npm:^3.0.4" "@lavamoat/preinstall-always-fail": "npm:^2.0.0" "@metamask/auto-changelog": "npm:^5.0.1" - "@metamask/multichain-api-client": "npm:^0.6.1" + "@metamask/multichain-api-client": "npm:^0.8.0" "@solana/wallet-standard-chains": "npm:^1.1.1" "@solana/wallet-standard-features": "npm:^1.3.0" "@ts-bridge/cli": "npm:^0.6.3"