This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Description
Url
https://aptos.dev/en/build/smart-contracts/digital-asset#customizing-a-collection
Describe the content issue
The modification should be as follows:
use std::option::{Self, Option};
public entry fun create_collection(creator: &signer) {
let royalty = option::none();
let collection_constructor_ref = &collection::create_unlimited_collection(
creator,
"My Collection Description",
"My Collection",
royalty,
"https://mycollection.com",
);
let mutator_ref = collection::generate_mutator_ref(collection_constructor_ref);
// Store the mutator ref somewhere safe
}
Section
move-and-smart-contracts