Skip to content

Commit 88ac007

Browse files
committed
merge main fix conflicts
2 parents f4fb4f4 + e7ea2c0 commit 88ac007

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

packages/connect-evm/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Fixed incorrect caching of error responses for some requests/events ([#59](https://github.com/MetaMask/connect-monorepo/pull/59))
13+
1014
## [0.1.0]
1115

1216
### Added

packages/connect-multichain/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Bump `@metamask/multichain-api-client` to prevent `RPC request with id already seen.` error on extension when using firefox ([#60](https://github.com/MetaMask/connect-monorepo/pull/60))
1313

14+
### Fixed
15+
16+
- Fixed incorrect caching of error responses for some requests/events ([#59](https://github.com/MetaMask/connect-monorepo/pull/59))
17+
1418
## [0.3.0]
1519

1620
### Changed

packages/connect-multichain/src/multichain/transports/mwp/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,9 @@ export class MWPTransport implements ExtendedTransport {
522522
request: TransportRequest,
523523
response: TransportResponse,
524524
): Promise<void> {
525+
if(response.error) {
526+
return;
527+
}
525528
if (CACHED_METHOD_LIST.includes(request.method)) {
526529
await this.kvstore.set(SESSION_STORE_KEY, JSON.stringify(response));
527530
} else if (request.method === 'eth_accounts') {

0 commit comments

Comments
 (0)