zkevm-circuits icon indicating copy to clipboard operation
zkevm-circuits copied to clipboard

Deduplication of gen_blockchain_data.rs

Open ChihChengLiang opened this issue 2 years ago • 8 comments
trafficstars

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_

ChihChengLiang avatar Aug 07 '23 12:08 ChihChengLiang

Hello, @ChihChengLiang this is for the specific branch 999722f?

protocolwhisper avatar Aug 14 '23 15:08 protocolwhisper

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.

ChihChengLiang avatar Aug 14 '23 16:08 ChihChengLiang

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

leolara avatar Aug 15 '23 02:08 leolara

@protocolwhisper, let us know if you would like to take this task.

ChihChengLiang avatar Aug 21 '23 07:08 ChihChengLiang

Sure :)

protocolwhisper avatar Aug 22 '23 07:08 protocolwhisper

Hi @leolara, I reassigned to @protocolwhisper as this is a good first issue.

ChihChengLiang avatar Aug 22 '23 08:08 ChihChengLiang

Hey 👋🏽, @ChihChengLiang.Can I get your comments on the PR?

protocolwhisper avatar Aug 28 '23 00:08 protocolwhisper

Hi @protocolwhisper, Yes, I've left some feedback on the PR.

ChihChengLiang avatar Aug 29 '23 12:08 ChihChengLiang