diff --git a/.changeset/eight-jeans-report.md b/.changeset/eight-jeans-report.md new file mode 100644 index 00000000..41b071a7 --- /dev/null +++ b/.changeset/eight-jeans-report.md @@ -0,0 +1,5 @@ +--- +'@soundxyz/sdk': patch +--- + +unix_timestamp -> unixTimestamp diff --git a/packages/sdk/src/client.ts b/packages/sdk/src/client.ts index cfa2be9b..ffd85525 100644 --- a/packages/sdk/src/client.ts +++ b/packages/sdk/src/client.ts @@ -494,8 +494,8 @@ export function SoundClient({ maxMintableLower: mintSchedule.maxMintableLower, maxMintableUpper: mintSchedule.maxMintableUpper, closingTime: mintSchedule.closingTime, - maxMintable: (unix_timestamp?: number) => - (unix_timestamp || Math.floor(Date.now() / 1000)) < mintSchedule.closingTime + maxMintable: (unixTimestamp?: number) => + (unixTimestamp || Math.floor(Date.now() / 1000)) < mintSchedule.closingTime ? mintSchedule.maxMintableUpper : mintSchedule.maxMintableLower, maxMintablePerAccount: mintSchedule.maxMintablePerAccount, diff --git a/packages/sdk/src/types.ts b/packages/sdk/src/types.ts index c831cabd..e3e7f65d 100644 --- a/packages/sdk/src/types.ts +++ b/packages/sdk/src/types.ts @@ -54,7 +54,7 @@ export type RangeEditionSchedule = MintScheduleBase & { maxMintableLower: number maxMintableUpper: number closingTime: number - maxMintable: (unix_timestamp?: number) => number + maxMintable: (unixTimestamp?: number) => number } export type MerkleDropSchedule = MintScheduleBase & {