Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/ethereum/http_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ def send_single(payload)
end

def send_batch(batch)
raise NotImplementedError
result = send_single(batch.to_json)
result = JSON.parse(result)

# Make sure the order is the same as it was when batching calls
# See 6 Batch here http://www.jsonrpc.org/specification
return result.sort_by! { |c| c['id'] }
end
end

Expand Down