etheruby 0.9.8 → 0.9.9

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/contract.rb +3 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1a876972cf55f4558f1fc345718c70f356cafbc
4
- data.tar.gz: bf1a77caf62874d48134b0a878179385b509297b
3
+ metadata.gz: df73a707ca1ff612853076f276a6c7bd13c1c50d
4
+ data.tar.gz: c490277acf41e1cc911bae5a8a79e6c5e5de1ae9
5
5
  SHA512:
6
- metadata.gz: 6d51f05ba07bab799c41a86394c6443ca90d9f78e099a2763655bbe876c7730ee718c62c94923e07ee4f4ee8a63fac7769d8bd8d7558cccefe9614c233d5a606
7
- data.tar.gz: 137e7ea4cb2a7e63698d6abd7a4c2bce1019aed8b9fc8a875971a8011e42343e73a3a8312977ac6f5b25872ac39b0dec53260242c9e34be474b9e1ce1c795354
6
+ metadata.gz: 1b7dd09066a98874996bef47c0539ded7c6596e4f822c3d77ed63bd37be241724bfe2460fbb55edeb5520d8bf64eb4f3e3a79981ce69461c7f23d1076c4a054d
7
+ data.tar.gz: 11c5f274c6b126bd9662fdafcea22ebc0e4ab9fa0b22dee1c384b100efe7b33b24036fb775016dc242ef6735e9f8316cb676a48ae2a6c43a6150f148024f05d0
@@ -86,7 +86,8 @@ module Etheruby
86
86
  def self.do_eth_transaction(composed_body)
87
87
  from_address = composed_body[:from] || Configuration.default_from
88
88
  pwd = Configuration.addresses[from_address]
89
- Client.personal.sendTransaction(composed_body.merge({from: address_fix(from_address)}), pwd)
89
+ composed_body[:from] = address_fix(from_address)
90
+ Client.personal.sendTransaction(composed_body, pwd)
90
91
  end
91
92
 
92
93
  def self.address
@@ -97,7 +98,7 @@ module Etheruby
97
98
  if addr.is_a? ::String
98
99
  addr
99
100
  else
100
- "0x#{@@address.to_s(16)}"
101
+ "0x#{addr.to_s(16)}"
101
102
  end
102
103
  end
103
104
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etheruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jérémy SEBAN
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-24 00:00:00.000000000 Z
11
+ date: 2017-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simplecov