istox 0.1.60.6 → 0.1.60.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cdf272a1081f16e82eeaad5bb12d7fd0cc2ae904c65228f50f5e7975b49ef41
4
- data.tar.gz: e7c6ba7c362e57114bfa7c49f13dd7528ae5d92bca317e9f65270475099e19e1
3
+ metadata.gz: 71c88228397c7d01ca4bf0fa716e381fa65b1b3cc924c1bafea977c7210c40a0
4
+ data.tar.gz: a02dcb2b98f0c9d95a2286afb03a91e9863ce9fafc76c198863b6ba7b4609a73
5
5
  SHA512:
6
- metadata.gz: 5eb428b1900eff36660ef4cc2bc7fcd0abcb35c83c08ba8dcb60a31d11c6df13e721a46b0dfb52808043b7fb8525506e3a7fd7fccbfa3befdff7fb8a5f8e240b
7
- data.tar.gz: 239a0d3037071f6d0a1c13320da19b27639373e9d2b586cad70936445852036456eb433a5dcc58224b3cd7cf0982a4628d124c22a2c2d9d5ed29700c4a10a929
6
+ metadata.gz: 7d1e39c9b883c9d922f9618c57a48072555fc1b7634f7cc89f9be66912ddc60f879c7d919c3e74d9d46be4708688056c486cf9aad747a8bee64f24c568c40f27
7
+ data.tar.gz: c983ced9d88f255b006718b7e9d0c820968522d7c3a2c3cf422f1aafa73759be98c08596ec390a4a5f6cc2a976a3f1feb07296a7b2c351be88699a37f235c635
@@ -13,11 +13,13 @@ module Istox
13
13
  klass = ::Istox::BlockchainReceiptService.blockchain_receipt_class
14
14
  uuid = SecureRandom.uuid
15
15
 
16
- ActiveRecord::Base.transaction do
17
- klass.create!({
18
- txid: uuid
19
- })
20
- end
16
+ klass.create!({
17
+ txid: uuid
18
+ })
19
+
20
+ item = klass.find_by_txid(uuid)
21
+
22
+ raise "Item cannot be found" if item.blank?
21
23
 
22
24
  uuid
23
25
  end
data/lib/istox/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = "0.1.60.6"
2
+ VERSION = "0.1.60.7"
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.60.6
4
+ version: 0.1.60.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng