Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

EVM error does not always throw error in Javascript #16

@travs

Description

@travs

Sometimes calling a function via method.postTransaction(..) will result in a throw in the EVM, but this is not reflected in javascript.

The way we currently diagnose EVM throws is by examining the gas usage returned by parity.js, and comparing that to the gas input to the function. If the values are equal, but state appears not to have changed, then we assume the function threw.

Is there a way to actually do a js error throw from within parity.js in this case?
Would be very useful for debugging :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions