storing and getting structs #445
-
Discord user IDenderwiggins Describe your question in detail.Hi, this example - https://learn.aptoslabs.com/en/tutorials/aptos-101/move-language/modules?workshop=web3-to-aptos has an inconsistency, but more likely I do not understand something: Here's the code:
Questions
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
And yes, in this case admin is
This one should most certainly have |
Beta Was this translation helpful? Give feedback.
init_module
is called on publishing of a module, with the publisher's signer. The publisher's address is the same address as the module (in this caseaptogotchi
), so they are the same address.And yes, in this case admin is
@aptogotchi
, but it could be changed to something else.This one should most certainly have
key
, I'm guessing it was inconsistent cc @0xaptosj