Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opensea-js",
"version": "8.0.7",
"version": "8.0.8",
"description": "TypeScript SDK for the OpenSea marketplace helps developers build new experiences using NFTs and our marketplace data",
"license": "MIT",
"author": "OpenSea Developers",
Expand Down
5 changes: 4 additions & 1 deletion src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
import {
getDefaultConduit,
getOfferPaymentToken,
getListingPaymentToken,
getSeaportAddress,
} from "./utils/utils";

Expand Down Expand Up @@ -101,7 +102,9 @@ export class OpenSeaSDK {

// Cache decimals for offer and listing payment tokens to skip network request
const offerPaymentToken = getOfferPaymentToken(this.chain).toLowerCase();
const listingPaymentToken = getOfferPaymentToken(this.chain).toLowerCase();
const listingPaymentToken = getListingPaymentToken(
this.chain,
).toLowerCase();
this._cachedPaymentTokenDecimals[offerPaymentToken] = 18;
this._cachedPaymentTokenDecimals[listingPaymentToken] = 18;

Expand Down
Loading