You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@gagarin55 I think that is a reasonable solution. The current batch API is used because it matches Epool's mewapi. Gastracker API does not support batch requests right now, I think. It would be good to standardize batch requests.
You may have an issue with this code
https://github.com/ethereumproject/TokenMint/blob/master/src/store/transactionActions.js#L11
According to JSON-RPC specification (http://www.jsonrpc.org/specification):
So, there is no order in result.
In emerald-js library I suggest following implementation for batch requests - https://github.com/ethereumproject/emerald-js/blob/master/src/rpc/jsonrpc.js#L73
You can check example in tests - https://github.com/ethereumproject/emerald-js/blob/master/src/rpc/jsonrpc.test.js#L5
The idea is that we map handler for each response by request id.
Much appreciate any comments and suggestions!
The text was updated successfully, but these errors were encountered: