Skip to content
This repository was archived by the owner on Jul 5, 2022. It is now read-only.
This repository was archived by the owner on Jul 5, 2022. It is now read-only.

[Bug]: deploy_local doesn't works #22

@Fooooooooooox

Description

@Fooooooooooox

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

  1. Run command 'bash scripts/deploy_local.sh '
  2. Execute script 'Greeter'
  3. 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

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssue not analysed yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions