Skip to content

Running yarn deploy gives TypeError: Cannot read property 'length' of undefined #618

@chrishobcroft

Description

@chrishobcroft

I am trying to use the instructions here to deploy the protocol to the Ethereum Ephemery testnet.

Steps to reproduce:

  1. clone the protocol repo with:
git clone https://github.com/livepeer/protocol.git
  1. copy the .env.sample file to .env
  2. add a private key, corresponding to an address with funds on Ephemery, to PRIVATE_KEY=
  3. Add the following in hardhat.config.ts under networks:
        ethereumEphemeryDevnet: {
            url: `https://eth.ephemeral.zeus.fyi`,
            accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : undefined
        },
  1. Set the defaultNetwork in hardhat.config.ts to ethereumEphemeryDevnet.
  2. Run the following:
yarn
export LPT_DEPLOYMENT_EXPORT_PATH=~/Development/lpt_contracts.json
yarn deploy
  1. See error:
Error: ERROR processing /home/ubuntu/protocol/deploy/deploy_contracts.ts:
TypeError: Cannot read property 'length' of undefined
    at getFrom (/home/ubuntu/protocol/node_modules/hardhat-deploy/src/helpers.ts:1642:14)
    at _deploy (/home/ubuntu/protocol/node_modules/hardhat-deploy/src/helpers.ts:537:9)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async _deployOne (/home/ubuntu/protocol/node_modules/hardhat-deploy/src/helpers.ts:934:16)
    at DeploymentsManager.executeDeployScripts (/home/ubuntu/protocol/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1232:19)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
error Command failed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions