etheruby 0.9.8 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/etheruby/contract.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df73a707ca1ff612853076f276a6c7bd13c1c50d
|
4
|
+
data.tar.gz: c490277acf41e1cc911bae5a8a79e6c5e5de1ae9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b7dd09066a98874996bef47c0539ded7c6596e4f822c3d77ed63bd37be241724bfe2460fbb55edeb5520d8bf64eb4f3e3a79981ce69461c7f23d1076c4a054d
|
7
|
+
data.tar.gz: 11c5f274c6b126bd9662fdafcea22ebc0e4ab9fa0b22dee1c384b100efe7b33b24036fb775016dc242ef6735e9f8316cb676a48ae2a6c43a6150f148024f05d0
|
data/lib/etheruby/contract.rb
CHANGED
@@ -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
|
-
|
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#{
|
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.
|
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-
|
11
|
+
date: 2017-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov
|