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
Describe the content issue
All the strings used as name and description during creating a collection should be changed from raw string to string::utf8(b""). For example,
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",
+ string::utf8(b"My Collection Description"),
- "My Collection",
+ string::utf8(b"My Collection"),
royalty,
"https://mycollection.com",
);
let mutator_ref = collection::get_mutator_ref(collection_constructor_ref);
// Store the mutator ref somewhere safe
}
Section
move-and-smart-contracts