Skip to content

Commit

Permalink
Fix resolveRoyaltyRule breaking (#14088)
Browse files Browse the repository at this point in the history
## Description 

Fixes `resolveRoyaltyRule` from breaking after 0.43 update.

## Test Plan 

How did you test the new or updated feature?

---
If your changes are not user-facing and not a breaking change, you can
skip the following section. Otherwise, please indicate what changed, and
then add to the Release Notes section as highlighted during the release
process.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] 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
  • Loading branch information
manolisliolios authored Oct 4, 2023
1 parent bc63976 commit 68fea9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nice-onions-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mysten/kiosk': patch
---

Fixes resolve royalty rule from breaking.
2 changes: 1 addition & 1 deletion sdk/kiosk/src/tx/rules/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function resolveRoyaltyRule(params: RuleResolvingParams) {
const [amount] = txb.moveCall({
target: `${packageId}::royalty_rule::fee_amount`,
typeArguments: [itemType],
arguments: [policyObj, objArg(txb, price ?? '')],
arguments: [policyObj, txb.pure.u64(price || '0')],
});

// splits the coin.
Expand Down

0 comments on commit 68fea9e

Please sign in to comment.