ethereum 0.4.60 → 0.4.61
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ethereum/contract.rb +5 -1
- data/lib/ethereum/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: f7beb51d137130932441fc4bc67546dc9f3af464
|
4
|
+
data.tar.gz: 628409d7b7168db426e6be1899f0865c462e51a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 456cba06bd329c4aebbda4c3f993512ea38f7bc90921acafd95213c005672ea5861ab243651353e162a4d84015a0dce93769eb984435df05a7355672f99fa190
|
7
|
+
data.tar.gz: 59b48d04f86198c287bbce053132bb1359288e84d851b6ba266a9ff37d6c6d1d94ab2ae46bcbdaac93b2ca231cfd116851b33291d13027da381b636dbc7f20de
|
data/lib/ethereum/contract.rb
CHANGED
@@ -103,7 +103,11 @@ module Ethereum
|
|
103
103
|
formatted_result = fun.outputs.collect {|x| x.type }.zip(raw_result.gsub(/^0x/,'').scan(/.{64}/))
|
104
104
|
output = formatted_result.collect {|x| formatter.from_payload(x) }
|
105
105
|
#return {data: payload.join(), raw: raw_result, formatted: output}
|
106
|
-
|
106
|
+
if output.length == 0
|
107
|
+
return output[0]
|
108
|
+
else
|
109
|
+
return output
|
110
|
+
end
|
107
111
|
end
|
108
112
|
|
109
113
|
define_method "transact_#{derived_function_name}".to_sym do |*args|
|
data/lib/ethereum/version.rb
CHANGED