From 0af447e38a5ea0796026b1e7c53bdceaf609198b Mon Sep 17 00:00:00 2001 From: Joshua Schmidt <123490974+JoshuaSchmidt-OpenSea@users.noreply.github.com> Date: Mon, 6 Mar 2023 09:56:44 -0600 Subject: [PATCH] Unsupport Protocol Bug Fix (#856) --- src/sdk.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sdk.ts b/src/sdk.ts index e3006d75f..42a7cb23f 100644 --- a/src/sdk.ts +++ b/src/sdk.ts @@ -2796,8 +2796,10 @@ export class OpenSeaSDK { public async approveOrder(order: OrderV2, domain?: string) { if ( !( - order.protocolAddress in - [CROSS_CHAIN_SEAPORT_ADDRESS, CROSS_CHAIN_SEAPORT_V1_4_ADDRESS] + order.protocolAddress.toLowerCase() === + CROSS_CHAIN_SEAPORT_ADDRESS.toLowerCase() || + order.protocolAddress.toLowerCase() === + CROSS_CHAIN_SEAPORT_V1_4_ADDRESS.toLowerCase() ) ) { throw new Error("Unsupported protocol");