Skip to content
Discussion options

You must be logged in to vote

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.

const MY_NUM: u8 = 0;

fun init_module() {
  // Can the devs do something?
  do_something(MY_NUM);
}

fun do_something(num: u8) {
  // ...
}

Replies: 2 comments 2 replies

Comment options

0x-j
Jun 18, 2024
Maintainer Author

You must be logged in to vote
0 replies
Comment options

0x-j
Jun 18, 2024
Maintainer Author

You must be logged in to vote
2 replies
@gregnazario
Comment options

Answer selected by 0x-j
@0x-j
Comment options

0x-j Jun 18, 2024
Maintainer Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
move Questions related to the Move Language move-vm Things about move vm
2 participants