Skip to content

Commit

Permalink
Unsupport Protocol Bug Fix (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaSchmidt-OpenSea authored Mar 6, 2023
1 parent 8ce58d6 commit 0af447e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 0af447e

Please sign in to comment.