Is there any kind of a constructor like function, which will run at the time of deployment in move programming language?
is there constructor function in move programming language?
118 Views Asked by MikhilMC At
1
There are 1 best solutions below
Related Questions in APTOS
- In Aptos how do you you call initialize a constructor when deploying the contract with Aptos CLI
- Read different resources from multiple addresses
- Get transaction hash from raw transaction in aptos network
- Unable to compile move
- How to allow all to use mint function of aptos coin
- Multiple coins transfer via aptos smart contract
- Aptos Bytecode / ABI to move file?
- Aptos Blockchain Node unable to sync properly after switching to fast sync. What to do?
- Aptos Move conflicting dependencies of imported dependencies
- Validate Aptos account address in javascript
- How to send a transaction to Aptos using Petra Wallet?
- What is different between Aptos devnet and testnet?
- How do I execute a Move script on Aptos using the Rust SDK?
- why do `coin::initialize` enforce `coin_address<CoinType> == account_addr`?
- How do I use a dependency just for tests?
Related Questions in MOVE-LANG
- Read different resources from multiple addresses
- Aptos Bytecode / ABI to move file?
- Aptos Move conflicting dependencies of imported dependencies
- How to define Move Error types in Sui blockchain
- How do I execute a Move script on Aptos using the Rust SDK?
- why do `coin::initialize` enforce `coin_address<CoinType> == account_addr`?
- How do I use a dependency just for tests?
- How do I get all the keys in a table?
- How do I call a function in a different Move module / smart contract?
- How do I execute a Move script with the Aptos CLI?
- (Move) push_back on nested vector
- How do you really track a Move transaction on Diem?
- How can I call on chain module without it's source code?
- How do I call functions in Move?
- Aptos move compilation error: Duplicate definition for module
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You might be looking for
init_module. This function runs just when you publish your module.An example:
From aptos-move/move-examples/moon_coin/sources/MoonCoin.move in aptos-core.
You can learn more about it here: https://aptos.dev/move/move-on-aptos/modules-on-aptos/.