Skip to main content

combine_approvals

Function combine_approvals 

Source
pub fn combine_approvals(
    account: Address,
    config: &ConfigurableAccountConfig,
    inner: B256,
    approvals: Vec<PrimitiveSignature>,
) -> Result<ConfigurableAccountSignature>
Expand description

Combines owner approvals of inner into a 0x05 signature for account.

Approvals are recovered and deduplicated, and the fewest that reach the threshold are kept, sorted by owner, as the node requires: in address order the last one reaches the threshold, and there are at most [MAX_CONFIGURABLE_ACCOUNT_SIGNATURES].