Skip to content

Commit 652cd66

Browse files
ryanioclaude
andauthored
chore: release v8.0.3 - fix Seaport initialization for custom chain deployments (#1794)
* fix: pass correct Seaport contract address during initialization - Add getSeaportAddress import to SDK initialization - Pass contractAddress in Seaport overrides config - Ensures chains like Somnia use correct Seaport address (Gunzilla Seaport) - Fixes "could not decode result data" error when calling getCounter Previously, the SDK was creating Seaport instances without specifying the contract address, causing seaport-js to default to the cross-chain Seaport address. This resulted in errors on chains like Somnia that use custom Seaport deployments (Gunzilla Seaport). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * chore: bump version to 8.0.3 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent f50c241 commit 652cd66

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opensea-js",
3-
"version": "8.0.2",
3+
"version": "8.0.3",
44
"description": "TypeScript SDK for the OpenSea marketplace helps developers build new experiences using NFTs and our marketplace data",
55
"license": "MIT",
66
"author": "OpenSea Developers",

src/sdk.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ import {
2525
AssetWithTokenStandard,
2626
AssetWithTokenId,
2727
} from "./types";
28-
import { getDefaultConduit, getOfferPaymentToken } from "./utils/utils";
28+
import {
29+
getDefaultConduit,
30+
getOfferPaymentToken,
31+
getSeaportAddress,
32+
} from "./utils/utils";
2933

3034
/**
3135
* The OpenSea SDK main class.
@@ -78,11 +82,15 @@ export class OpenSeaSDK {
7882
this._signerOrProvider = signerOrProvider ?? this.provider;
7983

8084
const defaultConduit = getDefaultConduit(this.chain);
85+
const seaportAddress = getSeaportAddress(this.chain);
8186
this.seaport = new Seaport(this._signerOrProvider, {
8287
conduitKeyToConduit: {
8388
[defaultConduit.key]: defaultConduit.address,
8489
},
85-
overrides: { defaultConduitKey: defaultConduit.key },
90+
overrides: {
91+
defaultConduitKey: defaultConduit.key,
92+
contractAddress: seaportAddress,
93+
},
8694
});
8795

8896
// Emit events

0 commit comments

Comments
 (0)