GithubHelp home page GithubHelp logo

Comments (4)

localhuman avatar localhuman commented on July 18, 2024

I believe this now works on the development branch with the following command:
build ../neo-boa/boa/tests/src/bugs/Hal9000WhileBug.py test 05 01 False bytearray(b'\x00\x00\x01\x02\x00')

Outputs the following:

LOADING AND SAVING! ../neo-boa/boa/tests/src/bugs/Hal9000WhileBug.py 
Saved output to ../neo-boa/boa/tests/src/bugs/Hal9000WhileBug.avm 
[I 171209 19:56:11 EventHub:98] [test_mode][SmartContract.Runtime.Log] [a6a57d36ec7c56d62077ba755400e3ec259afac3] b'Application!'
[I 171209 19:56:11 EventHub:98] [test_mode][SmartContract.Runtime.Log] [a6a57d36ec7c56d62077ba755400e3ec259afac3] b'Null'
[I 171209 19:56:11 EventHub:98] [test_mode][SmartContract.Runtime.Log] [a6a57d36ec7c56d62077ba755400e3ec259afac3] b'Null'
[I 171209 19:56:11 EventHub:98] [test_mode][SmartContract.Runtime.Log] [a6a57d36ec7c56d62077ba755400e3ec259afac3] b'Not null'
[I 171209 19:56:11 EventHub:98] [test_mode][SmartContract.Execution.Success] [a6a57d36ec7c56d62077ba755400e3ec259afac3] [1]

-----------------------------------------------------------
Calling ../neo-boa/boa/tests/src/bugs/Hal9000WhileBug.py with arguments ["bytearray(b'\\x00\\x00\\x01\\x02\\x00')"] 
Test deploy invoke successful
Used total of 265 operations 
Result True 
Invoke TX gas cost: 0.001 
-------------------------------------------------------------

@hal0x2328 is that the output you would expect? Or am I missing something

from neo-boa.

localhuman avatar localhuman commented on July 18, 2024

note, the test referenced above is in fe08686

from neo-boa.

hal0x2328 avatar hal0x2328 commented on July 18, 2024

Yes, it seems to be fixed, I even tried another variation that was failing before even when not returning True from inside the while loop, and it works now.

from neo-boa.

localhuman avatar localhuman commented on July 18, 2024

👍

from neo-boa.

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.