Skip to content

Lesson 6: Error: invalid bytecode (argument="bytecode", value=undefined, code=INVALID_ARGUMENT, version=contracts/5.7.0) #5077

Answered by paulcoffee85
baroonjha asked this question in Q&A
Discussion options

You must be logged in to vote

in deploy file:
Change to await ethers.getContractFactory("SimpleStorage:)

async function main(){
  const SimpleStorageFactory = await ethers.ContractFactory("SimpleStorage")

Replies: 1 comment 2 replies

Comment options

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

@paulcoffee85
Comment options

Answer selected by baroonjha
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