You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 5, 2022. It is now read-only.
deploy_rinkeby works fine, but when i ran deploy_local.sh it threw this error:
make: *** No rule to make target `mainnet-fork'. Stop.
i assume it's because mainnet-fork command is absent in Makefile.
To Reproduce
Run command 'bash scripts/deploy_local.sh '
Execute script 'Greeter'
See error:
-> % bash scripts/deploy_local.sh
Enter the mainnet RPC URL to fork a local hardhat node from:
Example: https://eth-mainnet.alchemyapi.io/v2/XXXXXXXXXX
Please wait 5 seconds for hardhat to fork mainnet and run locally...
If this command fails, try running yarn to install hardhat dependencies...
make: *** No rule to make target `mainnet-fork'. Stop.
Which contract do you want to deploy (eg Greeter)?
Greeter
Enter constructor arguments separated by spaces (eg 1 2 3):
aa
[⠢] Compiling...
No files changed, compilation skipped
Error:
ProviderError(ReqwestError(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(8545), path: "/", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 61, kind: ConnectionRefused, message: "Connection refused" })) }))
Expected behavior
complete the make mainnet-fork command in Makefile
Describe the bug
deploy_rinkeby works fine, but when i ran deploy_local.sh it threw this error:
make: *** No rule to make target `mainnet-fork'. Stop.
i assume it's because mainnet-fork command is absent in Makefile.
To Reproduce
-> % bash scripts/deploy_local.sh
Enter the mainnet RPC URL to fork a local hardhat node from:
Example: https://eth-mainnet.alchemyapi.io/v2/XXXXXXXXXX
Please wait 5 seconds for hardhat to fork mainnet and run locally...
If this command fails, try running yarn to install hardhat dependencies...
make: *** No rule to make target `mainnet-fork'. Stop.
Which contract do you want to deploy (eg Greeter)?
Greeter
Enter constructor arguments separated by spaces (eg 1 2 3):
aa
[⠢] Compiling...
No files changed, compilation skipped
Error:
ProviderError(ReqwestError(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(8545), path: "/", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 61, kind: ConnectionRefused, message: "Connection refused" })) }))
Expected behavior
complete the make mainnet-fork command in Makefile
Additional context
No response