Skip to content

Commit

Permalink
[zksend] Make contract optional in ZkSendLinkBuilder.createLinks (Mys…
Browse files Browse the repository at this point in the history
…tenLabs#17013)

## Description 

Describe the changes or additions included in this PR.

## Test Plan 

How did you test the new or updated feature?

---
If your changes are not user-facing and do not break anything, you can
skip the following section. Otherwise, please briefly describe what has
changed under the Release Notes section.

### 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
hayes-mysten authored Apr 2, 2024
1 parent bef2053 commit 59168f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/giant-eyes-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mysten/zksend': patch
---

Make contract optional in ZkLSendLinkBuilder.createLinks
2 changes: 1 addition & 1 deletion sdk/zksend/src/links/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export class ZkSendLinkBuilder {
client?: SuiClient;
network?: 'mainnet' | 'testnet';
links: ZkSendLinkBuilder[];
contract: ZkBagContractOptions;
contract?: ZkBagContractOptions;
}) {
const contract = new ZkBag(contractIds.packageId, contractIds);
const store = transactionBlock.object(contract.ids.bagStoreId);
Expand Down

0 comments on commit 59168f7

Please sign in to comment.