istox 0.1.43.3 → 0.1.43.4
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a641abdedffd3d7553282d9271ebb0dfbb1aafca39f4c2d6b3d08509c2766255
|
4
|
+
data.tar.gz: 3d97c1960502cc8aebe01e59db97f3ccfae248009f33429b33f7ccc5c1aeb052
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 972165b81ec0ab0a303a568e3a07cb3dc3ecd4a55324662a060892fcea23b5056958cd983caa81cea335577e2c8829d5dde1e9f6a7d7b649be89dd404b619a3b
|
7
|
+
data.tar.gz: ee44bc96eb41df5c15e6985eec4b48905558c3f2b6054df13448ce8509e842ef666a6b73d29f4a24b1bc1cc37165f1d64ab6e3c8cbd8aa5b26e3fc427773c524
|
data/Gemfile.lock
CHANGED
@@ -4,19 +4,11 @@ module Istox
|
|
4
4
|
def txn_status_changed(transactions)
|
5
5
|
transactions.each do |transaction|
|
6
6
|
|
7
|
-
receipt = ::Istox::BlockchainReceipt.where(
|
8
|
-
|
9
|
-
if receipt.nil?
|
10
|
-
receipt = ::Istox::BlockchainReceipt.where(txhash: nil, txid: transaction[:id]).first
|
11
|
-
end
|
7
|
+
receipt = ::Istox::BlockchainReceipt.where(txid: transaction[:id]).first
|
12
8
|
|
13
9
|
if receipt.nil?
|
14
10
|
puts 'Transaction not found, skipping...'
|
15
11
|
next
|
16
|
-
else
|
17
|
-
if receipt.txhash.blank?
|
18
|
-
receipt.update!(txhash: transaction[:hash])
|
19
|
-
end
|
20
12
|
end
|
21
13
|
|
22
14
|
find_resource(transaction) do |receipt, resource_name, resource_id, resource_action, sid|
|
data/lib/istox/version.rb
CHANGED