Running `yarn deploy` gives `TypeError: Cannot read property 'length' of undefined`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, typescript
- Domain
- blockchain, devops
Research direction
Start with deploy/deploy_contracts.ts and hardhat.config.ts, then run the documented Ephemery setup and yarn deploy to reproduce the failure. Trace the deployment configuration around the reported hardhat-deploy error and verify that deployment completes without the TypeError.
Written by the indexing model from the issue text.
Description
I am trying to use the instructions here to deploy the protocol to the Ethereum Ephemery testnet.
Steps to reproduce:
- clone the protocol repo with:
git clone https://github.com/livepeer/protocol.git
- copy the
.env.samplefile to.env - add a private key, corresponding to an address with funds on Ephemery, to
PRIVATE_KEY= - Add the following in
hardhat.config.tsundernetworks:
ethereumEphemeryDevnet: {
url: `https://eth.ephemeral.zeus.fyi`,
accounts: PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : undefined
},
- Set the
defaultNetworkin hardhat.config.ts toethereumEphemeryDevnet. - Run the following:
yarn
export LPT_DEPLOYMENT_EXPORT_PATH=~/Development/lpt_contracts.json
yarn deploy
- 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.
- Dominant language
- JavaScript
- Stars
- 155
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from livepeer/protocol
-
known-issue
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Winning tickets can settle for less than their face value once the recipient’s reserve is exhausted Openknown-issue
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
blockchain enhancement pm
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
known-issue
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
known-issue
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in livepeer/protocol
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·