Skip to content

Commit

Permalink
Fixes arg name: unixTimestamp (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
gigamesh authored Sep 10, 2022
1 parent 8f00721 commit db003a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/eight-jeans-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@soundxyz/sdk': patch
---

unix_timestamp -> unixTimestamp
4 changes: 2 additions & 2 deletions packages/sdk/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 & {
Expand Down

0 comments on commit db003a0

Please sign in to comment.