Skip to content

ReferenceError: deploy is not defined #4952

Answered by pacelliv
jeevansiddu asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @jeevansiddu, you extracted from the hre the getNamedAccounts and deployments fields. Now you need to extract from the deployments fied the deploy function:

    const { getNamedAccounts, deployments } = hre;
    const { deploy } = deployments 
    const { deployer } = await getNamedAccounts();

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jeevansiddu
Comment options

@pacelliv
Comment options

Answer selected by alymurtazamemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants