there is a way to know how much optimization runs were aplied to a contract??

Apr 22, 2022, 1:15 PM
applied
Apr 22, 2022, 1:15 PM
Should be in the hardhat/truffle config
Apr 22, 2022, 1:19 PM
just used remix.
Its an old contract that I want to verify now and I remember I used optimization but dont remember the number of runs.. fshit
Apr 22, 2022, 1:30 PM
Remix by default doesn't apply optimization, and if you just check the checkbox without changing the number of runs remix puts that at 200, if you changed that... Good luck
Apr 22, 2022, 1:33 PM
haha yes I modified the opt
maybe I was thinking on a script that runs optimization and try to find the matching the output
HIT OF LUCK
Apr 22, 2022, 1:37 PM
If you verify it, it will be shown on the block explorer
Apr 22, 2022, 1:37 PM
Yes...
Apr 22, 2022, 1:38 PM
Well done, u worked it out
Apr 22, 2022, 1:38 PM
Was luck... just remembered the number of optimization was 100, pure luck.
But I think if somebody has the same problem he can write an script that compile with diff optimizations and compare the output code with the one given by ethscan/bscscan
Apr 22, 2022, 1:39 PM

© 2024 Draquery.com All rights reserved.