ethereum 0.4.60 → 0.4.61

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: b5a060d0e2305651f8d71af4a99dbcbd630d42a4
4
- data.tar.gz: 4a49ace49f14060f92cab9e40e72e717f0b8c204
3
+ metadata.gz: f7beb51d137130932441fc4bc67546dc9f3af464
4
+ data.tar.gz: 628409d7b7168db426e6be1899f0865c462e51a8
5
5
  SHA512:
6
- metadata.gz: 3e3a6c7675a94e594e2b79892a9794cf5b3321f19c99edf64bf41dc501bbf32296065b6a9b69c869fbc10ecf9b5fb00fb1dbd3f97c48e444f4be4110a71116a2
7
- data.tar.gz: 9ec8007d267ff301b4145c4b98ee906ab86f699f7d7eec2ba44e36c5242d769135a4db0ffc5612d55c9f830df5b31099d4ec67d69453995f877e080b7a9217d2
6
+ metadata.gz: 456cba06bd329c4aebbda4c3f993512ea38f7bc90921acafd95213c005672ea5861ab243651353e162a4d84015a0dce93769eb984435df05a7355672f99fa190
7
+ data.tar.gz: 59b48d04f86198c287bbce053132bb1359288e84d851b6ba266a9ff37d6c6d1d94ab2ae46bcbdaac93b2ca231cfd116851b33291d13027da381b636dbc7f20de
@@ -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
- return output
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|
@@ -1,3 +1,3 @@
1
1
  module Ethereum
2
- VERSION = "0.4.60"
2
+ VERSION = "0.4.61"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ethereum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.60
4
+ version: 0.4.61
5
5
  platform: ruby
6
6
  authors:
7
7
  - DigixGlobal Pte Ltd (https://dgx.io)