ethereum 0.3.50 → 0.3.51
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 +4 -4
- data/lib/ethereum/deployment.rb +2 -2
- data/lib/ethereum/transaction.rb +1 -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: 0df371ccbd446a91c3611ad41457a748a09decf6
|
|
4
|
+
data.tar.gz: 15c535ac0052c1ec2ba9117821ea27088726e3e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 64b556b00a089a4275a306793459b689ca674750e25612184082652e3ee76c76321eb9127da55098608784b35c872a6b979e1bf2631b09efeb3f91472f58b77f
|
|
7
|
+
data.tar.gz: 24330886788203c870c9bc16b5b32c2066b3145e80921676a1374c5c232ec56079e899064853da567aa062b69f946631c2bb9e887319507a983e01aa368ad89c
|
data/lib/ethereum/deployment.rb
CHANGED
|
@@ -31,10 +31,10 @@ module Ethereum
|
|
|
31
31
|
@valid_deployment = @connection.get_code(@contract_address)["result"] != "0x"
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
def wait_for_deployment(timeout =
|
|
34
|
+
def wait_for_deployment(timeout = 1500.seconds)
|
|
35
35
|
start_time = Time.now
|
|
36
36
|
while self.deployed? == false
|
|
37
|
-
raise
|
|
37
|
+
raise "Transaction #{@id} timed out." if ((Time.now - start_time) > timeout)
|
|
38
38
|
sleep 5
|
|
39
39
|
return true if self.deployed?
|
|
40
40
|
end
|
data/lib/ethereum/transaction.rb
CHANGED
|
@@ -14,7 +14,7 @@ module Ethereum
|
|
|
14
14
|
@mined = @connection.get_transaction_by_hash(@id)["result"]["blockNumber"].present?
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
def wait_for_miner(timeout =
|
|
17
|
+
def wait_for_miner(timeout = 1500.seconds)
|
|
18
18
|
start_time = Time.now
|
|
19
19
|
while self.mined? == false
|
|
20
20
|
raise Timeout::Error if ((Time.now - start_time) > timeout)
|
data/lib/ethereum/version.rb
CHANGED