web3-eth 0.2.14 → 0.2.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/web3/eth/contract.rb +4 -1
- data/lib/web3/eth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ae18ddda76080eb4b0e694671823d891c42a089
|
4
|
+
data.tar.gz: 3e4e0a1f209aefd124d97e6059792599a5d98177
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9be70ea0946dbcbeb13f80841746f066a2f80f6f3e4a1e50b7d152e8ba3cdda11d1afcddc9d179eee3b2a068b4e17dd3f9e7a86e4b77b63b041b1f301b19d5e
|
7
|
+
data.tar.gz: 33c4d08ffa0ca28d2158e2f08b7937f944ac638a7e680ba1af166068cfd204eabf001b15de731594163c25acf5be5093f19a744ce78bb3289dada6a708f6c408
|
data/lib/web3/eth/contract.rb
CHANGED
@@ -149,15 +149,18 @@ module Web3
|
|
149
149
|
@events_by_hash = {}
|
150
150
|
|
151
151
|
abi.each{|a|
|
152
|
-
|
152
|
+
|
153
153
|
case a['type']
|
154
154
|
when 'function'
|
155
|
+
method = ContractMethod.new(a)
|
155
156
|
@functions[method.name] = method
|
156
157
|
@functions_by_hash[method.signature_hash] = method
|
157
158
|
when 'event'
|
159
|
+
method = ContractMethod.new(a)
|
158
160
|
@events[method.name] = method
|
159
161
|
@events_by_hash[method.signature_hash] = method
|
160
162
|
when 'constructor'
|
163
|
+
method = ContractMethod.new(a)
|
161
164
|
@constructor = method
|
162
165
|
end
|
163
166
|
}
|
data/lib/web3/eth/version.rb
CHANGED