Skip to content

Commit 876845a

Browse files
Use zone returned by buildOffer when creating collection offers. (#1058)
1 parent 9c0044b commit 876845a

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opensea-js",
3-
"version": "6.0.5",
3+
"version": "6.0.6",
44
"description": "JavaScript SDK for the OpenSea marketplace helps developers build new experiences using NFTs and our marketplace data!",
55
"license": "MIT",
66
"author": "OpenSea Developers",
@@ -18,17 +18,17 @@
1818
"src"
1919
],
2020
"scripts": {
21-
"postinstall": "husky install || exit 0",
22-
"prepare": "npm run build",
21+
"abi-type-gen": "typechain --target=ethers-v5 src/abi/*.json --out-dir=src/typechain/contracts",
2322
"build": "npm run abi-type-gen && tsc -p tsconfig.build.json && npm run bundle",
2423
"bundle": "browserify lib/index.js -o lib/bundle.js",
25-
"abi-type-gen": "typechain --target=ethers-v5 src/abi/*.json --out-dir=src/typechain/contracts",
2624
"check-types": "tsc --noEmit --project tsconfig.json",
2725
"coverage-report": "nyc report --reporter=lcov",
2826
"docs-build": "typedoc --out docs src/index.ts",
29-
"lint": "concurrently \"npm run check-types\" \"npm run prettier:check\" \"npm run eslint:check\"",
3027
"eslint:check": "eslint . --max-warnings 0 --ext .js,.ts",
3128
"eslint:fix": "npm run eslint:check -- --fix",
29+
"postinstall": "husky install || exit 0",
30+
"lint": "concurrently \"npm run check-types\" \"npm run prettier:check\" \"npm run eslint:check\"",
31+
"prepare": "npm run build",
3232
"prettier:check": "prettier --check .",
3333
"prettier:check:package.json": "prettier-package-json --list-different",
3434
"prettier:fix": "prettier --write .",

src/sdk.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,10 +572,10 @@ export class OpenSeaSDK {
572572
endTime:
573573
expirationTime?.toString() ??
574574
getMaxOrderExpirationTimestamp().toString(),
575-
zone: DEFAULT_ZONE_BY_NETWORK[this.chain],
575+
zone: buildOfferResult.partialParameters.zone,
576576
domain,
577577
salt: BigNumber.from(salt ?? 0).toString(),
578-
restrictedByZone: false,
578+
restrictedByZone: true,
579579
allowPartialFills: true,
580580
};
581581

0 commit comments

Comments
 (0)