Skip to content

Why deployed not called in test script? #1016

Answered by krakxn
mghildiy asked this question in Q&A
Discussion options

You must be logged in to vote

Your doubt is so because you have got things mixed up - below is a precise explanation which should answer your queries:

prototype . deploy ( … ) => Promise

Creates a transaction to deploy the transaction and sends it to the network using the contract Signer, returning a Promise that resolves to a Contract. The transaction is available as contract.deployTransaction.

Keep in mind that the Contract may not be mined immediately. The contract.deployed() function will return a Promise which will resolve once the contract is deployed, or reject if there was an error during deployment.

Simply, deploy is to deploy the contract and deployed to check if it worked correctly or not.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@mghildiy
Comment options

@krakxn
Comment options

@mghildiy
Comment options

@krakxn
Comment options

Answer selected by mghildiy
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