Move.

Post

Share your knowledge.

kryptoschain.
Feb 13, 2025
Expert Q&A

Can I assign a specific ID to a shared object in Move?

I'm trying to create a shared object within the init function of a Move module and want to assign it a specific predetermined ID like 0x123. Is this possible, or do I need to follow another approach?

  • Move CLI
1
1
Share
Comments
.

Answers

1
dudley_smith.
Feb 13 2025, 11:09

No, you cannot directly assign a specific UID to a shared object in Move. The system automatically generates unique identifiers for new objects created in a transaction, ensuring their uniqueness in the global object pool .

0
Comments
.

Do you know the answer?

Please log in and share it.

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