Open ChihChengLiang opened 1 year ago
Hello, @ChihChengLiang this is for the specific branch 999722f?
Hi @protocolwhisper, the issue remains in the current main branch. The commit hash 999722f is only used as a permalink to show the code block.
this is not urgent I think that is why I assigned it to me, but if someone else wants to do it, reassign and go for it
@protocolwhisper, let us know if you would like to take this task.
Sure :)
Hi @leolara, I reassigned to @protocolwhisper as this is a good first issue.
Hey 👋🏽, @ChihChengLiang.Can I get your comments on the PR?
Hi @protocolwhisper, Yes, I've left some feedback on the PR.
The gen_blockchain_data deploys many contracts. It now has many duplication of deploy, get_block_number, blocks.insert, deployments.insert.
It would be great to extract functions to prevent code duplication.
https://github.com/privacy-scaling-explorations/zkevm-circuits/blob/999722fe638d14adc15fbc291c44792dd6ba07c3/integration-tests/src/bin/gen_blockchain_data.rs#L225-L244
Originally pointed out by @leolara in https://github.com/privacy-scaling-explorations/zkevm-circuits/pull/1550#discussion_r1284234211_