Move.

Post

Share your knowledge.

Theoremus.
Dec 03, 2024
Expert Q&A

How to create one-time witness in Move module

How can I create an OTW and pass the check is_one_time_witness function(in create_currency function) for testing in Sui Move?

  • Move Module
  • Move Bug
1
1
Share
Comments
.

Answers

1
farshad.
Dec 3 2024, 23:30

You can use the create_treasury_cap_for_testing function to solve this issue.

1
Best Answer
Comments
.

Do you know the answer?

Please log in and share it.

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148Posts231Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

Reward CampaignJune
We use cookies to ensure you get the best experience on our website.
More info