I want to know what is the constructor function (that is called during deployment) in Aptos move contract and how initialize a string value on the contract level when calling it. How to achieve this and how do I call it with argument with the aptos move publish command?
In Aptos how do you you call initialize a constructor when deploying the contract with Aptos CLI
99 Views Asked by Tahlil At
1
There are 1 best solutions below
Related Questions in BLOCKCHAIN
- Sepolia test network ID
- Gas Estimation Fee on Tron Mainnet
- This is the solidity code to list nft in marketplace after minting but while calling makeItem function Error is showing that Faliled to estimate gas
- Trying to send transactions via a signer using my private key
- My question is regarding installation of a package in VS code but im getting an error in installing it
- Historical data scrapping / collection for Ethereum
- Installation Private Blockchain
- How to import rpc information without importing .env file or hardcoding on frontend?
- How do I speed up transaction filtering on solan blockchain?
- Undeclared identifier: VRF_V2_Wrapper.calculateRequestPrice()
- how to interpret and format iterest rates and index returned by aave event
- Can I swap with 1inch swap apis with forked hardhart?
- How to connect metamask to flutter mobile app
- Scraping 'offers' data from OpenSea
- Which web3 decentralized wallet is suitable to store my crypto assets and lock some of the tokens for certain time?
Related Questions in MOVE
- I need assistance with scripting between tabs for Google Sheets
- Understanding subtlety of move semantics involving struct
- Moving Rows from one Google Sheet Tab to Another AND Referencing Original Tab
- Why move from an rvalue?
- Move BitBucket repository to cPanel
- python moving files to folder depending on df values
- EWS EmailMessage Move failed
- Form with two images is saving both with same content as first in PHP
- How to implement move functionality without any reference to std::move or std::swap?
- Rust Partial Move syntax
- Python Moving files script, 'startswith' and 'endswith', but, how to find contains or partial matches based on user input
- In CnosDB After move vnode, compact vnode report vnode not found
- Why reeborg does not working well in Python
- Moving value and reassign it by a new one should be restricted by Rust 1.74 compiler
- Please explain move constructors and assignement logic flow
Related Questions in SMARTCONTRACTS
- Gas estimation failed | Returned error: gas required exceeds allowance (16966)
- This is the solidity code to list nft in marketplace after minting but while calling makeItem function Error is showing that Faliled to estimate gas
- how i need place arg in code for funtion send?
- Uniswap v3 flashloan remainging balance not correct after paying off the loan
- Blind signing when trying to send USDT over Arbitrum network
- connecting trust wallet mobile to my dapp
- Solidity Smart Contract & Hedera Hashgraph Javascript SDK Integration
- Trying to interact with a contract using is function selector, how do i get the block hash?
- a sales tax on stonfi or dedust (The Open Network)
- After issuing the NFT smart contract I made, it cannot be viewed by OpenSea
- no scripts folder in hardhat framework instead there's ignition folder with a subfolder named modules
- Ensure smart contract integrity in web applications
- How to generate multi hop swap path with ethers.js?
- How does the fee get calculated in hardhat?
- Function for returning a wallet balance
Related Questions in APTOS
- Can I reverse-resolve the public key from an address or signature?
- How can I create the `framework.mrb` file to generate my own genesis file?
- Guide for constructing the private blockchain network using Aptos
- Block-STM - Why do we need this condition "when a transaction aborts, all higher transactions are scheduled for re-validation."
- how to pass arguments when submitting an aptos transaction
- How to verify a signature by Aptos Typescript SDK on backend
- Multiple coins transfer via aptos smart contract
- How to allow all to use mint function of aptos coin
- Unable to compile move
- Get transaction hash from raw transaction in aptos network
- Read different resources from multiple addresses
- In Aptos how do you you call initialize a constructor when deploying the contract with Aptos CLI
- Aptos: Get address from privateKey
- Aptos-sdk | How to decode a hexString into a human readable string
- How to calculate the Voting Power of any validator address?
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 # Hahtags
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 automatically 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/.
From the answer to this previous Stack Overflow question: https://stackoverflow.com/a/76367239/3846032.