applyUserOpOverrideOrFeeOption

1function applyUserOpOverrideOrFeeOption<TValue>(
2 value,
3 override?,
4 feeOption?,
5): any;

Defined in: aa-sdk/core/src/utils/userop.ts:145

Utility method for applying a UserOperationOverrides field value and a UserOperationFeeOptionsField value over the current value set for the field, with the override taking precedence over the fee option

Type Parameters

Type Parameter

TValue extends any

Parameters

ParameterTypeDescription

value

TValue

the current value of the field

override?

any

the override value to apply

feeOption?

any

the fee option field value to apply

Returns

any

the new value of the field after applying the override or fee option