Skip to content
Discussion options

You must be logged in to vote

So, you can deploy your contract once on sepolia, using yarn hardhat deploy, and then run the tests.
But in test do some modification, instead of using fixture which deploys new contract everytime, you can use get method of deployments, which will get the most recent deployment.

Code snippet:

const _raffle = await deployments.get("Raffle")
const raffleContract = await ethers.getContractAt("Raffle", _raffle.address, deployer)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@NickoMenty
Comment options

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