ethereum.rb 2.1.4 → 2.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 521d5de9ea9a0d4d65ea0a9c8d40aee5cd30059a
4
- data.tar.gz: 301e695e2005d2b4c4b1a5860f3ca4251ac81d6e
3
+ metadata.gz: 3f544de2fe8801d127620608cda11d710a582d6a
4
+ data.tar.gz: 8b974097866ff820627a5124576734bf55cd708c
5
5
  SHA512:
6
- metadata.gz: 0cc58822478802ba206592bbe70e3293f6abbcbf5b3a8dfd8be2ee235a87fa0ae13e05540feb2690b22c307d2812a0aee47dbb6c725e7e6f5a3748da4ec39dae
7
- data.tar.gz: e4688a1546e99107facf5e6cde3240c4b9cb5490a49d8e17793d138cdc0d3fb282edd129c927fc2a6f4b89493390748ff7aa5af445559b7af16ddafb0da1c396
6
+ metadata.gz: 550c212f78315dd63fc5f8eaddfeb4e6e75845d5e17693d7289134eb21ac1fc5b7aac9164439ec900fbc8f52177557704d30116a77db8ccc6e408a1b6733c683
7
+ data.tar.gz: b42b0340946a33408d43ebca7d9873bfe553b234d17fccb489b8e779ae538362d7d436fbd72d0018e3cd32eb4c54a2be60a2637cdb3e5a505dcfbe4fa9b42647
@@ -87,7 +87,7 @@ module Ethereum
87
87
 
88
88
 
89
89
  def transfer(key, address, amount)
90
- Eth.configure { |c| c.chain_id = get_chain }
90
+ Eth.configure { |c| c.chain_id = net_version["result"].to_i }
91
91
  args = {
92
92
  from: key.address,
93
93
  to: address,
@@ -64,7 +64,7 @@ module Ethereum
64
64
  end
65
65
 
66
66
  def send_raw_transaction(payload, to = nil)
67
- Eth.configure { |c| c.chain_id = @client.get_chain }
67
+ Eth.configure { |c| c.chain_id = net_version["result"].to_i }
68
68
  @nonce ||= @client.get_nonce(key.address) - 1
69
69
  @nonce += 1
70
70
  args = {
@@ -1,3 +1,3 @@
1
1
  module Ethereum
2
- VERSION = "2.1.4"
2
+ VERSION = "2.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ethereum.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marek Kirejczyk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-26 00:00:00.000000000 Z
11
+ date: 2017-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler