Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 57451
0 votes
1 answer
221 views

`deployments.get` not allowing me to call functions

I have a contract that is deployed when I run a hardhat deploy. pragma solidity >=0.7.0 <0.9.0; contract SampleCode { uint256 public variable; constructor() public { variable = 5; …
Patrick Collins's user avatar
2 votes
2 answers
3k views

hardhat-deploy: ProviderError: The method evm_snapshot does not exist/is not available

I'm trying to run a test with hardhat, and have it deploy my deployments/fixtures with the command: npx hardhat test --network rinkeby --deploy-fixture When I run this, I get the following error: Pro …
Patrick Collins's user avatar
6 votes
0 answers
805 views

Save hardhat node state for later

Is there a way to save your current local hardhat node state for later? Or do you have to restart every time you start up a new node? Like: yarn hardhat node --from-state ./state-dir Or something
Patrick Collins's user avatar
3 votes
1 answer
2k views

How to interact with a deployed contract in a script/task using hardhat-deploy

I have a folder structure that looks like the following in my hardhat project. scripts/ └── enter.ts deploy └── 01_Deploy_Raffle.ts After I deploy a contract using hardhat deploy, my other deploy scr …
Patrick Collins's user avatar
2 votes
1 answer
2k views

hardhat-deploy deterministic deployment

I'm trying to deploy a contract, delete it, and then deploy it again using CREATE2 with hardhat-deploy's deterministic feature. However, I can't seem to get my contracts to have the same address. Here …
Patrick Collins's user avatar