omni / poa-bridge

POA <-> Ethereum bridge for self transfers of POA native token to POA20 (ERC20 representation). Not supported. Use TokenBridge instead
https://github.com/poanetwork/token-bridge
GNU General Public License v3.0
79 stars 38 forks source link

Problem: error exit codes list is still limiting #61

Closed yrashk closed 6 years ago

yrashk commented 6 years ago

There are even sometimes incorrectly deducted.

There are more situations that can be distinguished -- for example, nonce re-use. This particular error will be conflated with insufficient funds because they share the error code in the JSON-RPC respponse.

Proposed solution: discriminate JSON-RPC responses with 32010 code according to their message.

Closes #54