@tradeport/sui-trading-sdk 0.3.5 → 0.3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @tradeport/sui-trading-sdk
2
2
 
3
+ ## 0.3.7
4
+
5
+ ### Patch Changes
6
+
7
+ - b66637a: Further updated transfer policy selection for direct transfers
8
+
9
+ ## 0.3.6
10
+
11
+ ### Patch Changes
12
+
13
+ - b821140: Updated transfer policy selection for direct transfers
14
+
3
15
  ## 0.3.4
4
16
 
5
17
  ### Patch Changes
package/dist/index.js CHANGED
@@ -5154,7 +5154,7 @@ function canBeTransferedDirectly(collectionChainState) {
5154
5154
  }
5155
5155
  function getTransferPolicyForDirectTransfer(collectionChainState) {
5156
5156
  return collectionChainState?.transfer_policies?.find(
5157
- (policy) => !policy.is_origin_byte && policy.rules?.filter(
5157
+ (policy) => !policy.is_origin_byte && policy.rules.length > 0 && policy.rules?.filter(
5158
5158
  (rule) => rule.type !== "kiosk_lock_rule" && rule.type !== "royalty_rule"
5159
5159
  ).length === 0
5160
5160
  );