etheruby 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/etheruby/client.rb +6 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fea4ffff4d28d133a0f998ca40f6040c6c114ae4
4
- data.tar.gz: c14ed6dfaaf3d7708d301233b727a6444cb28e6c
3
+ metadata.gz: fe6059f73259d51bd23456566340539606038675
4
+ data.tar.gz: 865c9da247f041475f8187253fec5167cc21b68d
5
5
  SHA512:
6
- metadata.gz: 8899bd1b0bad2748eee4df58a238efb697b753514491292cafdb3192000c826c7e9cd6a9852e49a724b3976b2bb5b09ad82ba7fa67c3ad1f0fa67e84ef16eb00
7
- data.tar.gz: 6246fe84e03f713e19160e1fbd4f6ad9efa7e4f2df2cad9a86946988dab2bc5e089b6f9264270d14daf351a13483609fb8b34d581f99d707df7e50ed06735037
6
+ metadata.gz: c89eeb2ad9c9576d9f69ea34cb240d06def2c1bbb0f3c35a96d45ac93e0a9dfb0d1ead9c8a6cb14c6f3649ece74b90a23558ea72d43d10333890222db4e98b5a
7
+ data.tar.gz: 85c83200d224da2f17cd11848dadf612b28b898a733ec50b6860ccdba1f8f165fe0da0040d8f68e77d6b18a87e66a1f919ea2605765ad3fc19af71169a39244a
@@ -20,7 +20,12 @@ module Etheruby
20
20
  @sym = sym
21
21
  end
22
22
  def method_missing(sym, *data)
23
- body = { 'id' => '1', 'method' => "#{@sym}_#{sym}", 'params' => data }
23
+ body = {
24
+ 'jsonrpc' => '2.0',
25
+ 'id' => '1',
26
+ 'method' => "#{@sym}_#{sym}",
27
+ 'params' => data
28
+ }
24
29
  text_response = http_post_request(::MultiJson.dump(body))
25
30
  ::MultiJson.load(text_response)
26
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etheruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jérémy SEBAN