Randomness commitment ext in Aptogotchi #391
-
Heya, I have a question on the Aptogotchi randomness code implementation. I see that the randomness commitment ext is a value tied to the contract address aptogotch_addr, and not an aptogotchi itself. However, if there are multiple aptogotchis making moves, wouldn't this result in errors since for some of them the randomness commitment ext may not have been revealed yet?
Am I missing something here? Link to code: https://learn.aptoslabs.com/en/code-examples/randomness |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
i think the https://github.com/aptos-labs/aptogotchi-random-mint/blob/main/move/sources/aptogotchi.move#L246 |
Beta Was this translation helpful? Give feedback.
i think the
RandomnessCommitmentExt
is indeed stored in the aptogotchi address, instead of contract addresshttps://github.com/aptos-labs/aptogotchi-random-mint/blob/main/move/sources/aptogotchi.move#L246