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
Currently contract MultiHashWrapper is implemented as a contract. Because this module has no storage and no external functions, it is appropriate to implement this as a library.
Similarly for Spawner.
Recommendation: switch these to libraries
References:
A "library" contract with no external functions is implemented a little differently.
... code of internal library functions and all functions called from therein will at compile time be pulled into the calling contract, and a regular JUMP call will be used instead of a DELEGATECALL.
So basically contract and library are equivalent here and the choice can be made based on whichever is semantically preferred or easier to reason about.
Currently
contract MultiHashWrapper
is implemented as a contract. Because this module has no storage and no external functions, it is appropriate to implement this as a library.Similarly for
Spawner
.Recommendation: switch these to libraries
References:
erasure-protocol/contracts/modules/MultiHashWrapper.sol
Line 10 in 4a3d98c
The text was updated successfully, but these errors were encountered: