ethereum.rb 2.1.2 → 2.1.3

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: 7f0c7071a558491b450799c58d386c0ee7c15c94
4
- data.tar.gz: ce75e35934f9e048fc5d1685512b0d18c0c144ae
3
+ metadata.gz: 983ae0ab36496c8c5b7ed3e2b88d2d3f4a379c68
4
+ data.tar.gz: d1195c8af999b50e72b360d68e789f51dcd30fbb
5
5
  SHA512:
6
- metadata.gz: 39b3e4e1174094f1f6dcfd5df14378f50b602e7ec50aeb4ded1a3c32e72ce8b35d0382f364260945f28ede9e96293c8b0a4ae0461fc1b57d62a23bf7a0965bb7
7
- data.tar.gz: af1985db04cfefcfc4f2bea25900d4d7b546da623d5205d090c5e15f6f45870a7758b4195726a892710ee8e2eb1fcd5d5405f551ac97c14b6b08abf5663345fe
6
+ metadata.gz: fb0b65cd1d7e8c32d1fb45948b77dc9638e2cc3e09d8711a0aef63a4c0fd9d09930436d5eb2a220b3a57cfabb329ce8817604134e4872749fc595db056f05a17
7
+ data.tar.gz: dcdd85cdf021fc80e9e864ee1fe4fd937d89e6cf2e6719a8bffeccec528b7f38db92a73a2713e70b3bf0738eec385133123f13b6b816a468d7283551dda6d257
@@ -65,11 +65,13 @@ module Ethereum
65
65
 
66
66
  def send_raw_transaction(payload, to = nil)
67
67
  Eth.configure { |c| c.chain_id = @client.get_chain }
68
+ @nonce ||= @client.get_nonce(key.address) - 1
69
+ @nonce += 1
68
70
  args = {
69
71
  from: key.address,
70
72
  value: 0,
71
73
  data: payload,
72
- nonce: @client.get_nonce(key.address),
74
+ nonce: @nonce,
73
75
  gas_limit: gas_limit,
74
76
  gas_price: gas_price
75
77
  }
@@ -1,3 +1,3 @@
1
1
  module Ethereum
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
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.2
4
+ version: 2.1.3
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-20 00:00:00.000000000 Z
11
+ date: 2017-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler