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
* @paramconfig.redeemerEnforcer - Address of the redeemer enforcer caveat contract.
297
+
* @paramconfig.caveats - Currently resolved caveats for the delegation being created.
298
+
* @paramconfig.existingDelegations - Existing parent-chain delegations to inspect for inherited constraints.
299
+
* @paramconfig.redeemerAddresses - Optional addresses to which redemption should be constrained.
300
+
* @paramconfig.requireRedeemers - Whether at least one redeemer constraint must exist.
297
301
* @returns The original caveats when sufficiently constrained, otherwise caveats with a redeemer caveat appended.
298
-
* @throws If no facilitator addresses are provided and no redeemer constraint exists.
302
+
* @throws If either facilitatorAddresses and/or redeemerAddresses are provided, but the intersection is empty.
303
+
* @throws If requireRedeemers is true, but no valid redeemer addresses are provided, and no existing redeemer caveat is found in the existingDelegations.
// If the result is defined, but zero-length, it implies no redeemers are allowed, which is a non-satisfiable constraint, so an error is thrown.
309
317
if(redeemerAddresses?.length===0){
310
318
thrownewError(
311
-
'No valid redeemer addresses were resolved. The intersection of `redeemers.addresses` and `extra.facilitatorAddresses` must be non-empty.',
319
+
'No valid redeemer addresses were resolved. If both `redeemers.addresses` and `extra.facilitatorAddresses` are provided, they must overlap. If only one is provided, it must include at least one address.',
0 commit comments