This PR adds a fix to ensure idempotency when attaching license terms in GroupingWorkflows.
Key Changes
Added the attachLicenseTerms helper function, which attaches license terms only if they haven't been applied already. GroupingWorkflows now uses this helper instead of calling LicensingModule directly.
Miscellaneous Fixes: Added EVM version, removed unnecessary imports, fixed state variable visibility, and applied minor style improvements.
Description
This PR adds a fix to ensure idempotency when attaching license terms in
GroupingWorkflows
.Key Changes
attachLicenseTerms
helper function, which attaches license terms only if they haven't been applied already.GroupingWorkflows
now uses this helper instead of callingLicensingModule
directly.Test Plan
All existing and new tests pass locally.
Related Issue