fairDataSociety / fdp-contracts

Fair Data Protocol smart contracts and its utilities
4 stars 1 forks source link

Insufficient funds error not handled properly on testnet #88

Closed tomicvladan closed 1 year ago

tomicvladan commented 1 year ago

On testnet, if there is no sufficient funds to create an account, gateway returns a similar object:

{"jsonrpc":"2.0","error":{"code":-32010,"message":"OldNonce, Current nonce: 48, nonce of rejected tx: 45"},"id":55}

The library doesn't handle this error properly, so instead it throws the following error: "undefined" is not valid JSON