istox 0.1.43.2 → 0.1.43.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
  SHA256:
3
- metadata.gz: 4327bfbcf408c69612cc026dddad46d9bcfae82f385c6d653540ad9d798e762a
4
- data.tar.gz: 41c144a433c1da6590d1e196546fc0004247410dcee6860d8c20dc0b8a66a0c9
3
+ metadata.gz: ba047d20c75361e365d703263833ec72430f06b1c0ef1f2e263a27b7541eadbb
4
+ data.tar.gz: fb742e9beaa1d71e5fc53217f2aeefd2678aa071a9204384a01af3c3f419eee4
5
5
  SHA512:
6
- metadata.gz: a0edd09873726e9c8fec8d1563c62f569a2094ba995eac7547bebeac771bfb1dbdd54d20ac08fb80475d0999724ff7258356c7bbce1376fb112b006d91b8ec87
7
- data.tar.gz: afb19d12fa7b6a01c0493ba0eca04f7a3192b9d6594723ea5b861c8450fa197e1a6cbd1bcaef67bbee972027f029e546f4387da6eac73aef46ce82bd7cec32f5
6
+ metadata.gz: 91a948fa0d98e7a7c0f51c06b2f0ef3d18105860961c8b8ed11799f549e6780117fed3fb31f48f19454f70eef86f9419cccb899641fb6ea1503b3e3bf46e00ee
7
+ data.tar.gz: 34a23206116d5d6a6b97e6b0a98a7c547114aa0dd2ae2b8d374c5fb85dbf8073c79f321e7abf2619adf6eadcb333235515a2585bdae61840d76ae59f4e307dcf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- istox (0.1.42.14)
4
+ istox (0.1.43.2)
5
5
  bunny (>= 2.12.0)
6
6
  graphlient
7
7
  gruf
@@ -1,16 +1,15 @@
1
1
  module Istox
2
2
  class BlockchainHashHandler
3
3
  class << self
4
- def hash_generated(transactions)
5
- transactions.each do |transaction|
6
- receipt = ::Istox::BlockchainReceipt.where(txid: transaction[:id], txhash: nil).first
4
+ def hash_generated(data)
5
+ receipt = ::Istox::BlockchainReceipt.where(txid: data.uuid, txhash: nil).first
7
6
 
8
- if receipt.nil?
9
- puts 'Transaction not found, skipping...'
10
- next
11
- end
12
- receipt.update!(txhash: transaction[:hash])
7
+ if receipt.nil?
8
+ puts 'Transaction not found, skipping...'
9
+ return
13
10
  end
11
+
12
+ receipt.update!(txhash: data.txnHash)
14
13
  end
15
14
 
16
15
  end
data/lib/istox/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = "0.1.43.2"
2
+ VERSION = "0.1.43.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: istox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.43.2
4
+ version: 0.1.43.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng