Skip to content

Add new error codes according to new spec #768

Closed
@frozeman

Description

@frozeman

Not sure if we want to have this in before frontier release, though.
I will increase that list if i come across cases where we need more explicit errors.

Please implement according to: https://github.com/ethereum/wiki/wiki/JSON-RPC-Error-Codes-Improvement-Proposal

  • SendTransaction when account is locked -> code: 1 Unauthorized
  • SendTransaction when confirmation window is waiting user input -> code: 2 Action not allowed
  • SendTransaction gas to low -> code: 3 Execution error, Reason -> 102 GAS to low
  • SendTransaction gas limit exceeded -> code: 3 Execution error, Reason -> 103 GAS limit exceeded
  • ...

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