@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/dist/index.mjs CHANGED
@@ -5130,7 +5130,7 @@ function canBeTransferedDirectly(collectionChainState) {
5130
5130
  }
5131
5131
  function getTransferPolicyForDirectTransfer(collectionChainState) {
5132
5132
  return collectionChainState?.transfer_policies?.find(
5133
- (policy) => !policy.is_origin_byte && policy.rules?.filter(
5133
+ (policy) => !policy.is_origin_byte && policy.rules.length > 0 && policy.rules?.filter(
5134
5134
  (rule) => rule.type !== "kiosk_lock_rule" && rule.type !== "royalty_rule"
5135
5135
  ).length === 0
5136
5136
  );