Code Monkey home page Code Monkey logo

Comments (5)

mmoravec avatar mmoravec commented on July 24, 2024

I've also attempted to create a list of length 3000 and the compiler errors out. I'm able to create a list of length 300. The max array size I can create is 1024.

from neo-python.

mmoravec avatar mmoravec commented on July 24, 2024

I've also found that the VM multiplies every gas attached by 100 million, so if i attach 2 gas it becomes 200 million.

from neo-python.

ixje avatar ixje commented on July 24, 2024

That multiplication by 100 million is to convert it to the format required by the network protocol.

from neo-python.

localhuman avatar localhuman commented on July 24, 2024

The max list length is enforced by the VM

I believe the issue is trying to create a list of length 0, which is currently not supported. List lengths are not mutable in the VM, so a list of length 0 would not be very much use!

You could file an issue on the neo-boa project to allow creation of lists with length of 0.

A work around would be to check if entries is greater than 0, and only create a new list in that case.

from neo-python.

mmoravec avatar mmoravec commented on July 24, 2024

@localhuman could be interesting to eventually allow mutable lists in neo-python and just work around how it would be done with the VM. For now we'll work around these limitations. Thanks all for the information 👍

from neo-python.

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.