diff --git a/packages/connect/src/backend/Blockchain.ts b/packages/connect/src/backend/Blockchain.ts index 348313dc77b9..b3fe864bfb28 100644 --- a/packages/connect/src/backend/Blockchain.ts +++ b/packages/connect/src/backend/Blockchain.ts @@ -40,10 +40,6 @@ const getNormalizedTrezorShortcut = (shortcut: string) => { return 'XRP'; } - if (['OP', 'BASE'].includes(shortcut)) { - return 'ETH'; - } - return shortcut; }; @@ -132,18 +128,10 @@ export class Blockchain { this.serverInfo = info; - const trezorShortcut = getNormalizedTrezorShortcut(this.coinInfo.shortcut); - - // TODO: remove of change - // const backendShortcut = this.serverInfo.shortcut; - // if (trezorShortcut.toLowerCase() !== backendShortcut.toLowerCase()) { + const trezorNetworkShortcut = getNormalizedTrezorShortcut(this.coinInfo.shortcut); + const backendNetworkShortcut = this.serverInfo.network; - if ( - (this.coinInfo.type === 'ethereum' && - info.network.toLowerCase() !== this.coinInfo.chain?.toLowerCase()) || - (this.coinInfo.type !== 'ethereum' && - info.network.toLowerCase() !== trezorShortcut.toLowerCase()) - ) { + if (backendNetworkShortcut.toLowerCase() !== trezorNetworkShortcut.toLowerCase()) { throw ERRORS.TypedError('Backend_Invalid'); }