Skip to content

How to import bytecode in javascript? #5286

Answered by alymurtazamemon
Iancu15 asked this question in Q&A
Discussion options

You must be logged in to vote

@lancu15 Yes, For example, if your contract name is SimpleStoreage then in your hardhat project inside artifacts folder you will find the contracts folder and inside it, you will find the SimpleStorage.sol folder inside it, you will find the SimpleStoreage.json file. You can move this file (manually or using script whatever you like) in the nextjs project and import the abi and bytecode from that file and using it you can create the contract object like we did in lesson 5.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Iancu15
Comment options

@alymurtazamemon
Comment options

@Iancu15
Comment options

@alymurtazamemon
Comment options

Answer selected by Iancu15
@Iancu15
Comment options

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