New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deduplicate code in scripts/helpers
and test/helpers/iterate
#4895
Deduplicate code in scripts/helpers
and test/helpers/iterate
#4895
Conversation
|
scripts/helpers
and test/helpers/iterate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked where the functions are used in the scripts
folder and so far:
chunk
: Unusedproduct
: Unusedrange
: In the SafeCast templateunique
: Unusedzip
: UnusedmapValues
: Unusedcapitalize
: In multiple templates
Since these are used within automatic generation, these are already checked in the CI so I'm approving.
However, I wonder if it makes sense to keep the helpers in where they're used the most (i.e tests/
)
CI failing due to #4896. Rerunning |
I considered keeping all that code in |
For the record, the "chunk" helpers was used in Forta's early days. We wanted to relay a lot of transaction trough multicall, but not all at once (we did that in blocks of 16 so that we benefit from multicall while limiting the size of the multicall transaction) |
Right, that feels weird. I think this is better anyway since we don't ship those scripts. And they're checked in the CI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR Checklist
npx changeset add
)