how to generate pre-deployed contract in genesis.json? #424
-
Hello, We are trying to deploy a contract in pre-defined address with Polygon-edge. After some digging, we found that we can set our contract in genesis.json file. Here is what we set, But, when we interact this contract with Web3.js, it doesn't work well like below as follow. We compiled our contract with Remix and set the bytecode to genesis.json. we also set storage data. Is there any tutorial for deploying contract in specific address? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@JSHan94 Hello, Thank you for your questions. If you set pre-deploy contract in genesis.json, you need to set |
Beta Was this translation helpful? Give feedback.
@JSHan94 Hello, Thank you for your questions. If you set pre-deploy contract in genesis.json, you need to set
deployedBytecode
incode
field of pre-deploy account setting ingenesis.json
. Would you mind telling me which bytecode you set? Thank you.