Skip to content

How to interact with a contract in the Deploy scripts #819

Answered by alymurtazamemon
Benrockiee asked this question in Q&A
Discussion options

You must be logged in to vote

@Benrockiee I think you have been asking this for a long time. Are you asking about scripts that are inside the deploy folder?

 const contract = await ethers.getContract("CONTRACT-NAME-HERE", deployer);
  const transactionResponse = await contract.CONTRACT-METHOD-CALL-HERE
  await transactionResponse.wait(1);

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@alymurtazamemon
Comment options

@Benrockiee
Comment options

@alymurtazamemon
Comment options

@Benrockiee
Comment options

@Benrockiee
Comment options

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