Giter VIP home page Giter VIP logo

dapple-script's People

Contributors

apmilen avatar mhhf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

isabella232

dapple-script's Issues

deprecate step-block confirmations?

Currently the real script execution has a step confirmation feature build in: dapple waits after each step before it got included into the chain and the result is the same as the simulated one.
My main motivation was to prevent errors caused by concurrent interaction points from different users as well as prevent a wrong transacton order.
I rediscovered that the later case is irrelevant: the account nonce takes part of this step. So the only reason for it to stay in is to prevent the further execution of the script in case an interaction step is dependant on state, which is also concurrently mutated during the scripts execution.
Is here waiting and aborting the right methodology, or should we deprecate step-confirmation, release all transactions at once, and handle this error case in a different way?

Possible bug in runwevm.js at line 56

Hey,

I do not really know the code and the execution flow, but in line 56

if(obj.type in opts.classes > -1){
is possibly wrong. In my case obj.type in opts.classes evaluates to false but is interpreted as 0 such that 0 > 1 evaluates to true.

In line 57 opts.classes[obj.type] is referenced, but it can not be part of the object.

After I removed > -1 at least my code was deploying. But as I mentioned I am not really familiar with it. So sorry if I do much ado about very little.

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.