Skip to content

Lesson7: TypeError: Cannot destructure property 'deploy' of 'deployments' as it is undefined. #6730

Answered by Tang-hw
Tang-hw asked this question in Q&A
Discussion options

You must be logged in to vote

I got it : I'm missing braces

before:

module.exports = async (getNamedAccounts, deployments) => {

replace

module.exports = async ({ getNamedAccounts, deployments }) => {

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Tang-hw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant