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
80 stars 39 forks source link

Problem: error exit codes list is still limiting and sometimes incorrect. #54

Closed yrashk closed 6 years ago

yrashk commented 6 years ago

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.