Giter VIP home page Giter VIP logo

Comments (1)

teodanciu avatar teodanciu commented on August 27, 2024

@rooooooooob, thank you for pointing out the error. I have now fixed the cddl to be:

costmdls =
  { ? 0 : [ * int64 ] ; Plutus v1
  , ? 1 : [ * int64 ] ; Plutus v2
  , ? 2 : [ * int64 ] ; Plutus v3
  , * 3 .. maxWord8 => [ * int64 ] ; Any 8-bit unsigned number can be used as a key
  }

which is correct and more precise than what we had before.

With regards to your last question, I don't understand everything you are asking (particularly towards the end), but I can start by saying that the Conway deserialization of costmodels does not check the number of values in the list, because the Plutus function that we are passing this list to (namely mkEvaluationContext) no longer expects the exact number of values for each language.
So there is no checking, ignoring or otherwise modification of the list based on these numbers.
If this does not answer everything you wanted to know, could you please explain more about what is unclear?
Thanks!

from cardano-ledger.

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.