Refactor Periphery Contracts to Use executeWithSig
for Direct Function Calls
#110
Labels
enhancement
New feature or request
executeWithSig
for Direct Function Calls
#110
Description
Currently, periphery contracts set permissions before invoking core protocol functions. For example, before
DerivativeWorkflows
callsregisterDerivative
in theLicensingModule
, it first sets permissions to allow the function call using a user-provided signature, and then callsregisterDerivative
. This approach is less gas-efficient and could introduce potential security vulnerabilities.Proposed Solution
Migrate to using
executeWithSig
fromIPAccount
to directly call the target function, thereby eliminating the intermediate permission-setting step.The text was updated successfully, but these errors were encountered: