MultisigConfig.assert
Asserts that a native multisig MultisigConfig.Config is valid.
Mirrors the Tempo validate_multisig_config rules: owners non-empty and <= maxOwners, strictly ascending unique nonzero owner addresses, nonzero owner weights, threshold >= 1, total weight <= u32::MAX, and threshold <= total weight.
Imports
Named
import { MultisigConfig } from 'ox/tempo'Examples
import { MultisigConfig } from 'ox/tempo'
MultisigConfig.assert({
threshold: 1,
owners: [
{ owner: '0x1111111111111111111111111111111111111111', weight: 1 },
],
})Definition
function assert<numberType>(
config: Config<numberType>,
): voidSource: src/tempo/MultisigConfig.ts
Parameters
config
- Type:
Config<numberType>
The multisig config.
config.owners
- Type:
readonly Owner[]
Weighted owner list (strictly ascending by owner address).
config.salt
- Type:
0x${string} - Optional
Caller-chosen 32-byte salt mixed into the permanent config ID. Defaults to
the zero salt (MultisigConfig.zeroSalt) when omitted.
config.threshold
- Type:
numberType
Minimum total owner weight required to authorize a transaction.
Return Type
void

