From 876845abd395c2b444608b114b3c9b80c68ccc51 Mon Sep 17 00:00:00 2001 From: Joshua Schmidt Date: Thu, 29 Jun 2023 21:57:47 -0500 Subject: [PATCH] Use zone returned by buildOffer when creating collection offers. (#1058) --- package.json | 10 +++++----- src/sdk.ts | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 517ce2eb5..fec884055 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opensea-js", - "version": "6.0.5", + "version": "6.0.6", "description": "JavaScript SDK for the OpenSea marketplace helps developers build new experiences using NFTs and our marketplace data!", "license": "MIT", "author": "OpenSea Developers", @@ -18,17 +18,17 @@ "src" ], "scripts": { - "postinstall": "husky install || exit 0", - "prepare": "npm run build", + "abi-type-gen": "typechain --target=ethers-v5 src/abi/*.json --out-dir=src/typechain/contracts", "build": "npm run abi-type-gen && tsc -p tsconfig.build.json && npm run bundle", "bundle": "browserify lib/index.js -o lib/bundle.js", - "abi-type-gen": "typechain --target=ethers-v5 src/abi/*.json --out-dir=src/typechain/contracts", "check-types": "tsc --noEmit --project tsconfig.json", "coverage-report": "nyc report --reporter=lcov", "docs-build": "typedoc --out docs src/index.ts", - "lint": "concurrently \"npm run check-types\" \"npm run prettier:check\" \"npm run eslint:check\"", "eslint:check": "eslint . --max-warnings 0 --ext .js,.ts", "eslint:fix": "npm run eslint:check -- --fix", + "postinstall": "husky install || exit 0", + "lint": "concurrently \"npm run check-types\" \"npm run prettier:check\" \"npm run eslint:check\"", + "prepare": "npm run build", "prettier:check": "prettier --check .", "prettier:check:package.json": "prettier-package-json --list-different", "prettier:fix": "prettier --write .", diff --git a/src/sdk.ts b/src/sdk.ts index c1c375771..0b6bc103a 100644 --- a/src/sdk.ts +++ b/src/sdk.ts @@ -572,10 +572,10 @@ export class OpenSeaSDK { endTime: expirationTime?.toString() ?? getMaxOrderExpirationTimestamp().toString(), - zone: DEFAULT_ZONE_BY_NETWORK[this.chain], + zone: buildOfferResult.partialParameters.zone, domain, salt: BigNumber.from(salt ?? 0).toString(), - restrictedByZone: false, + restrictedByZone: true, allowPartialFills: true, };