@tradeport/sui-trading-sdk 0.1.43 → 0.1.45
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 +12 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/helpers/kiosk/resolveTransferPolicies.ts +10 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -751,7 +751,11 @@ var resolveTransferPolicies = async ({
|
|
|
751
751
|
}
|
|
752
752
|
let policies = transferPolicies.length > 0 ? [
|
|
753
753
|
{
|
|
754
|
-
data: transferPolicies
|
|
754
|
+
data: transferPolicies?.filter(
|
|
755
|
+
(policy) => policy?.rules?.filter(
|
|
756
|
+
(rule) => rule?.includes("royalty_rule") || rule?.includes("kiosk_lock_rule") || rule?.includes("personal_kiosk_rule") || rule?.includes("floor_price_rule")
|
|
757
|
+
)?.length > 0
|
|
758
|
+
)?.[0],
|
|
755
759
|
transferRequest,
|
|
756
760
|
isCustom: false
|
|
757
761
|
}
|