Skip to content

Error: invalid bytecode #5575

Answered by aaankeet
jalenarko asked this question in Q&A
May 30, 2023 · 3 comments · 12 replies
Discussion options

You must be logged in to vote

Hey @jalenarko

its suppose to be .bin not abi for binary
change this

const abi = fs.readFileSync("./SimpleStorage_sol_SimpleStorage.abi", "utf8");
const binary = fs.readFileSync("./SimpleStorage_sol_SimpleStorage.abi","utf8");   <------- put .bin


to this

const binary = fs.readFileSync("./SimpleStorage_sol_SimpleStorage.bin","utf8")

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
7 replies
@aaankeet
Comment options

@jalenarko
Comment options

@aaankeet
Comment options

@aaankeet
Comment options

@jalenarko
Comment options

Comment options

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

@alymurtazamemon
Comment options

Comment options

You must be logged in to vote
3 replies
@jalenarko
Comment options

@aaankeet
Comment options

@jalenarko
Comment options

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