diff --git a/src/domain/accounts/counterfactual-safes/entities/__tests__/counterfactual-safe.builder.ts b/src/domain/accounts/counterfactual-safes/entities/__tests__/counterfactual-safe.builder.ts index 675c2a092c..31e084876a 100644 --- a/src/domain/accounts/counterfactual-safes/entities/__tests__/counterfactual-safe.builder.ts +++ b/src/domain/accounts/counterfactual-safes/entities/__tests__/counterfactual-safe.builder.ts @@ -8,10 +8,11 @@ export function counterfactualSafeBuilder(): IBuilder { .with('chain_id', faker.string.numeric({ length: 6 })) .with('creator', getAddress(faker.finance.ethereumAddress())) .with('fallback_handler', getAddress(faker.finance.ethereumAddress())) - .with('owners', [ - getAddress(faker.finance.ethereumAddress()), - getAddress(faker.finance.ethereumAddress()), - ]) + .with('owners', + Array.from( + { length: faker.number.int({ min: 1, max: 5 }) }, + () => getAddress(faker.finance.ethereumAddress()) + ) .with('predicted_address', getAddress(faker.finance.ethereumAddress())) .with('salt_nonce', faker.string.hexadecimal()) .with('singleton_address', getAddress(faker.finance.ethereumAddress()))