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 +4 -4
- data/lib/ethereum/contract.rb +3 -1
- data/lib/ethereum/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 983ae0ab36496c8c5b7ed3e2b88d2d3f4a379c68
|
4
|
+
data.tar.gz: d1195c8af999b50e72b360d68e789f51dcd30fbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb0b65cd1d7e8c32d1fb45948b77dc9638e2cc3e09d8711a0aef63a4c0fd9d09930436d5eb2a220b3a57cfabb329ce8817604134e4872749fc595db056f05a17
|
7
|
+
data.tar.gz: dcdd85cdf021fc80e9e864ee1fe4fd937d89e6cf2e6719a8bffeccec528b7f38db92a73a2713e70b3bf0738eec385133123f13b6b816a468d7283551dda6d257
|
data/lib/ethereum/contract.rb
CHANGED
@@ -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: @
|
74
|
+
nonce: @nonce,
|
73
75
|
gas_limit: gas_limit,
|
74
76
|
gas_price: gas_price
|
75
77
|
}
|
data/lib/ethereum/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2017-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|