You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
There is no point to have separate functions for same logic. If we need to change something, either we will do it at both places or it would result in inconsistency.
Separate functions means separate test cases (along with preparing their fixtures). It's a waste of time & requires extra effort on behalf of author & reviewer to manage things.
Description
// framework/src/modules/interoperability/mainchain/commands/submit_mainchain_cross_chain_update.ts
vs
// framework/src/modules/interoperability/utils.ts
These two functions have same logic in their bodies. We can merge them together with a modified signature like this:
Motivation
Additional Information
Already mentioned
The text was updated successfully, but these errors were encountered: