mixin_bot 2.2.1 → 2.2.2

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: ee9a02bff6da3b4331ff084e75d4f94d10d0a98b50e7b2c899679ec78340c659
4
- data.tar.gz: 699c595d8f4acfd94041be582b0eda32db2ea4ba4da34359d1fc231d7e6bcbc2
3
+ metadata.gz: 5a607209836b8c47fbcff727229f7ab93940f9b1dc5a99d4ab307345ffa952a0
4
+ data.tar.gz: aae920ac21d384f0a978b7e4a07e20df5c55cc6016cd7fbce1fa5231c638b742
5
5
  SHA512:
6
- metadata.gz: ad0a66de09acfda9b1a4da94568ec4d704eab3be8f4eb92de145262bd0e74fc4b0efaee1243b16d5876199d270160c2fbd48aced6580af3308ab55117e156205
7
- data.tar.gz: de638caf39c1af94cb169887f424d48127971f8bcd74c60a3f1b9e338b974c867001931e649244f16523e7d8efa501c6d81f0604c25f04a891cc7412550a45ed
6
+ metadata.gz: 46937ef32ab9ada8e3218c682fbe36a4086f7688ed5cf21ed5ad5aab575f9e8d8fe65c45220748021194500b486a538a06ddaa4d653af6762d65744c0bff51f8
7
+ data.tar.gz: 4a6d552a0fc8476105cf553b79ab1f2c231db95acc4cedec9131cc805758c1a68fd9845bc819f5396a42c297b3caf20f119a57e9cd066ab37d7f1cb7de04edb5
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.2.2] - 2026-05-24
11
+
12
+ ### Fixed
13
+
14
+ - **Safe transfer raw encoding** — version 5 transactions now always encode and decode the references count (including `0000` when empty), matching the Mixin kernel and official Go/TS SDKs. Fixes `/safe/transaction/requests` rejection after the v2 transaction encoder refactor.
15
+
10
16
  ## [2.2.1] - 2026-05-24
11
17
 
12
18
  ### Changed
@@ -26,7 +26,7 @@ module MixinBot
26
26
 
27
27
  decode_inputs
28
28
  decode_outputs
29
- decode_references if @tx.version >= Transaction::REFERENCES_TX_VERSION && @tx.references.present?
29
+ decode_references if @tx.version >= Transaction::REFERENCES_TX_VERSION
30
30
 
31
31
  extra_size = MixinBot.utils.decode_uint32 @buf.shift(4)
32
32
  @tx.extra = @buf.shift(extra_size).pack('C*')
@@ -23,7 +23,7 @@ module MixinBot
23
23
 
24
24
  bytes += encode_inputs
25
25
  bytes += encode_outputs
26
- bytes += encode_references if @tx.version >= Transaction::REFERENCES_TX_VERSION && @tx.references.present?
26
+ bytes += encode_references if @tx.version >= Transaction::REFERENCES_TX_VERSION
27
27
 
28
28
  extra_bytes = @tx.extra.bytes
29
29
  raise InvalidTransactionFormatError, 'extra is too long' if extra_bytes.size > Transaction::MAX_EXTRA_SIZE
@@ -173,9 +173,10 @@ module MixinBot
173
173
  def encode_references
174
174
  bytes = []
175
175
 
176
- bytes += MixinBot.utils.encode_uint16 @tx.references.size
176
+ references = Array(@tx.references)
177
+ bytes += MixinBot.utils.encode_uint16 references.size
177
178
 
178
- @tx.references.each do |reference|
179
+ references.each do |reference|
179
180
  bytes += [reference].pack('H*').bytes
180
181
  end
181
182
 
@@ -11,5 +11,5 @@ module MixinBot
11
11
  #
12
12
  # @see https://semver.org/
13
13
  #
14
- VERSION = '2.2.1'
14
+ VERSION = '2.2.2'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixin_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - an-lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-23 00:00:00.000000000 Z
11
+ date: 2026-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport