Skip to content

Commit

Permalink
chore: rm wrong copy
Browse files Browse the repository at this point in the history
  • Loading branch information
ganchoradkov committed Jun 24, 2024
1 parent 32cbdfa commit 5e3014d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/controllers/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,14 +258,6 @@ export class Engine extends ISingleEthereumEngine {
event.params.chainId = this.chainId.toString();
}

try {
await this.switchEthereumChain(event);
} catch (e) {
this.client.logger.warn(e);
const error = getSdkError("USER_REJECTED");
return this.rejectRequest({ id: event.id, topic: event.topic, error });
}

if (parseInt(event.params.chainId) !== this.chainId || this.isSwitchChainRequest(event)) {
this.client.logger.info(
`Session request chainId ${event.params.chainId} does not match current chainId ${this.chainId}. Attempting to switch`,
Expand Down

0 comments on commit 5e3014d

Please sign in to comment.