Hello! I'm trying to reproduce Etherscan's contrat verification system, assuming the same inputs (ie: source code, address, library addresses, constructor arguments, etc...), but I can't figure out how to generate deployed bytecode from that. Anyone here that has done that already or could point me in the right direction, please? Thank you :)

Mar 15, 2022, 10:32 AM
Compile the sc?
Mar 15, 2022, 10:36 AM
Yeah, I was able to do that with solc.js, but I don't know how to go from bytecode to deployed bytecode (using constructor args)
Mar 15, 2022, 10:38 AM
Ah the runtime code. Encode constructor args and append it at the end of the bytecode
Mar 15, 2022, 10:39 AM
Oh really, that's it? I was expected something more complicated ahah, giving this a try now! Thanks for your reply :)
Mar 15, 2022, 10:41 AM

© 2024 Draquery.com All rights reserved.