sui
sui copied to clipboard
[framework] Kiosk, TransferPolicy: post-audit fixes
Description
- adds check that item exists on
listandlist_with_purchase_cap - fixes broken behavior for
policy::remove_rule - adds
kiosk::uidfunction to read UID ifallow_extensionsset to true - adds
transfer_policy::rulesfunction to read assigned "Rules" - adds
kiosk::ItemPurchasedevent
Test Plan
Includes tests for new behaviors, makes sure that the fixes work.
Type of Change (Check all that apply)
- [x] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration
Release notes
- adds check that item exists on
listandlist_with_purchase_cap - fixes broken behavior for
policy::remove_rule - adds
kiosk::uidfunction to read UID ifallow_extensionsset to true - adds
transfer_policy::rulesfunction to read assigned "Rules" - adds
kiosk::ItemPurchasedevent
The latest updates on your projects. Learn more about Vercel for Git ↗︎
@sblackshear @amnn re-requesting review after adding an event ItemPurchased and a getter for TransferPolicy.rules field.