Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

saleEnded error on mint #16

Open
mattleesounds opened this issue Jul 9, 2024 · 2 comments
Open

saleEnded error on mint #16

mattleesounds opened this issue Jul 9, 2024 · 2 comments

Comments

@mattleesounds
Copy link

Hello, I am trying to mint things with the SDK, but I am getting this sale ended error. I have verified that I can still mint the token from the zora UI. Here is the error message I am getting:

`ERROR Mint failed: [ContractFunctionExecutionError: The contract function "mintWithRewards" reverted.

Error: SaleEnded()

Contract Call:
address: 0xcf6e80defd9be067f5adda2924b55c2186d3e930
function: mintWithRewards(address minter, uint256 tokenId, uint256 quantity, bytes minterArguments, address mintReferral)
args: (0x04e2516a2c207e84a1839755675dfd8ef6302f0a, 3, 1, 0x00000000000000000000000023b0195e3ec1ff09d3e54ce52b3b382087aefe5a00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000)
sender: 0x23B0195e3ec1Ff09D3e54cE52b3b382087aeFe5a

Docs: https://viem.sh/docs/contract/simulateContract
Version: [email protected]]
ERROR Minting error: [TypeError: Cannot read property 'slice' of undefined]
ERROR Error message: Cannot read property 'slice' of undefined
ERROR Error name: TypeError`

@mattleesounds
Copy link
Author

So it turns out that... the sale had ended. Who could have guessed!

@oveddan
Copy link
Collaborator

oveddan commented Jul 9, 2024

glad you sorted it out. yeah that was my guess too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants