Skip to content

Conversation

@Bridgerz
Copy link
Contributor

Description

Describe the changes or additions included in this PR.

Test plan

How did you test the new or updated feature?


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • Indexing Framework:

@Bridgerz Bridgerz temporarily deployed to sui-typescript-aws-kms-test-env November 11, 2025 02:02 — with GitHub Actions Inactive
@vercel
Copy link

vercel bot commented Nov 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
sui-docs Ready Ready Preview Comment Nov 11, 2025 2:04am
2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
multisig-toolkit Ignored Ignored Preview Nov 11, 2025 2:04am
sui-kiosk Ignored Ignored Preview Nov 11, 2025 2:04am

currency: &Currency<T>,
) {
// Make sure TreasuryCap has not been minted before.
assert!(coin::total_supply(&tc) == 0, ETokenSupplyNonZero);
Copy link
Contributor

@manolisliolios manolisliolios Nov 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use receiver syntax (I think there are a few more occasions you should in this fn)

Suggested change
assert!(coin::total_supply(&tc) == 0, ETokenSupplyNonZero);
assert!(tc.total_supply() == 0, ETokenSupplyNonZero);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants