Any plan to support custom parameters to init_module()
?
#273
-
Discord user IDNo response Describe your question in detail.Currently, if we want to set up some configuration, say the admin address for one that is not the publisher, we need to call an extra function after the module is published. If we allow passing in custom parameters to What error, if any, are you getting?No response What have you tried or looked at? Or how can we reproduce the error?N/A Which operating system are you using?macOS Which SDK or tool are you using? (if any)Aptos CLI Describe your environment or tooling in detailNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Maybe this is a limitation of static dispatch? |
Beta Was this translation helpful? Give feedback.
-
Ok I think we can achieve by setting the creator address in Move.toml and it will be in named address and we access it via But that doesn't solve the problem of we want to pass number or other things to init. |
Beta Was this translation helpful? Give feedback.
Any other inputs that are passed at creation time for init_module, can be inlined into the code, so it's very rare that there's anything that can't be worked around.