Code Monkey home page Code Monkey logo

Comments (4)

tannerhallman avatar tannerhallman commented on June 2, 2024

After minting another collection, I noticed that it selected image 10.jpg which means with a total collection size of 10, it selects images between 0-10 which means 11 shuffle options.

0
https://devnet-explorer.elrond.com/nfts/NTLPRK-10beda-01

10
https://devnet-explorer.elrond.com/nfts/NTLPRK-10beda-03

from elven-nft-minter-sc.

juliancwirko avatar juliancwirko commented on June 2, 2024

Hey, thanks for reporting. Yes, it shouldn't happen. It is a bug. You will still have the ten items, but one index will be missing.

Could you tell me more about it?

  1. What smart contract was used: modified, from the main branch or maybe from the development branch?
  2. What was the configuration when deploying it?
  3. I see that it was a giveaway, not a standard mint, right?

Thanks!

from elven-nft-minter-sc.

juliancwirko avatar juliancwirko commented on June 2, 2024

I think I fixed it on the development branch. I will do more tests later.

The problem was that there wasn't a shuffle 'gatekeeper' for the giveaway endpoint. The shuffle must be called at least once before minting (also giveaway). It should be done by hand because I can't run it in the init function. I could probably automate it in the CLI the same as with populateIndexes, but without the CLI, you will still need to remember about populateIndexes and shuffle.

Please try the wasm file from the development branch, and thanks for reporting, good catch :)

from elven-nft-minter-sc.

tannerhallman avatar tannerhallman commented on June 2, 2024

Hey sorry for the delay. Bad at GitHub notifications but it seems like you were able to resolve this! Thanks for your work.

from elven-nft-minter-sc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.