From 0d020a483d666c13895964df007e577ed773d826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Lillo=20Igualada?= Date: Tue, 6 May 2025 12:32:47 +0200 Subject: [PATCH] Update dynamic-fields.move Add an extra clarification pointing out that objects added as df do not need to have key ability, since that's the main difference between df and dof --- packages/samples/sources/programmability/dynamic-fields.move | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/samples/sources/programmability/dynamic-fields.move b/packages/samples/sources/programmability/dynamic-fields.move index b0e11bfe..02b7a26b 100644 --- a/packages/samples/sources/programmability/dynamic-fields.move +++ b/packages/samples/sources/programmability/dynamic-fields.move @@ -15,9 +15,9 @@ public struct Character has key { } // List of different accessories that can be attached to a character. -// They must have the `store` ability. +// They must have the `store` ability, but they do NOT need to have the `key` ability. public struct Hat has key, store { id: UID, color: u32 } -public struct Mustache has key, store { id: UID } +public struct Mustache has store { id: UID } #[test] fun test_character_and_accessories() {