web3-eth 0.2.14 → 0.2.15

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef7c29f56dd299e95ab99030916ab74f49c8ab64
4
- data.tar.gz: 37e532f820f44111b24985cb98821fb7e5773cfb
3
+ metadata.gz: 7ae18ddda76080eb4b0e694671823d891c42a089
4
+ data.tar.gz: 3e4e0a1f209aefd124d97e6059792599a5d98177
5
5
  SHA512:
6
- metadata.gz: 73178ab1c8530fbdbce1ad4fa8c489316e37e614b27f989c224d9a05e35ebf642340ea6d529532b025ee6ae43d1c802315cd0352f55c8a8faeb19da860e127e3
7
- data.tar.gz: 3ab2344cff8b9b00cf7e06be974f5f89682bbbbfa5f126c2a5a1b7b913c3e6ce9d03d7b06bc8cd14d1188f2593b4a2ab9acf30095e0e3345018accf6b42c730f
6
+ metadata.gz: c9be70ea0946dbcbeb13f80841746f066a2f80f6f3e4a1e50b7d152e8ba3cdda11d1afcddc9d179eee3b2a068b4e17dd3f9e7a86e4b77b63b041b1f301b19d5e
7
+ data.tar.gz: 33c4d08ffa0ca28d2158e2f08b7937f944ac638a7e680ba1af166068cfd204eabf001b15de731594163c25acf5be5093f19a744ce78bb3289dada6a708f6c408
@@ -149,15 +149,18 @@ module Web3
149
149
  @events_by_hash = {}
150
150
 
151
151
  abi.each{|a|
152
- method = ContractMethod.new(a)
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
  }
@@ -1,5 +1,5 @@
1
1
  module Web3
2
2
  module Eth
3
- VERSION = "0.2.14"
3
+ VERSION = "0.2.15"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web3-eth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - studnev