Skip to content

Lesson 7: Why so many Deploy?....... #5023

Answered by paulcoffee85
ArkX69 asked this question in Q&A
Discussion options

You must be logged in to vote

The reason why there are multiple deploy functions is that each tool has its own way of deploying smart contracts, and developers can choose the one that suits their needs the best.
For example:

  1. if you are using Solidity to write your smart contracts, you would use the deploy function in Solidity to initialize the state variables.
  2. If you are using Hardhat to deploy your contracts, you would use the deploy function in Hardhat to deploy the bytecode to the network.
  3. If you are using Ethers.js to interact with the Ethereum network, you would use the deploy function in Ethers.js to deploy the contract and return an instance of the deployed contract.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ArkX69
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants