ourzora / ocs-hackathon-24

Zora Onchain Summer Hackathon 24 Guide
10 stars 1 forks source link

saleEnded error on mint #16

Open mattleesounds opened 4 months ago

mattleesounds commented 4 months ago

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: viem@2.17.3] ERROR Minting error: [TypeError: Cannot read property 'slice' of undefined] ERROR Error message: Cannot read property 'slice' of undefined ERROR Error name: TypeError`

mattleesounds commented 4 months ago

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

oveddan commented 4 months ago

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