@@ -63,7 +63,9 @@ contract B20FactoryCreateB20Test is B20FactoryTest {
6363 IB20Factory.B20CreateParams memory p = _b20Params ();
6464 p.version = badVersion;
6565 vm.prank (caller);
66- vm.expectRevert (abi.encodeWithSelector (IB20Factory.UnsupportedVersion.selector , badVersion, IB20Factory.B20Variant.DEFAULT));
66+ vm.expectRevert (
67+ abi.encodeWithSelector (IB20Factory.UnsupportedVersion.selector , badVersion, IB20Factory.B20Variant.DEFAULT)
68+ );
6769 factory.createB20 (IB20Factory.B20Variant.DEFAULT, salt, abi.encode (p), new bytes [](0 ));
6870 }
6971
@@ -78,7 +80,11 @@ contract B20FactoryCreateB20Test is B20FactoryTest {
7880 IB20Factory.B20StablecoinCreateParams memory p = _stablecoinParams ();
7981 p.version = badVersion;
8082 vm.prank (caller);
81- vm.expectRevert (abi.encodeWithSelector (IB20Factory.UnsupportedVersion.selector , badVersion, IB20Factory.B20Variant.STABLECOIN));
83+ vm.expectRevert (
84+ abi.encodeWithSelector (
85+ IB20Factory.UnsupportedVersion.selector , badVersion, IB20Factory.B20Variant.STABLECOIN
86+ )
87+ );
8288 factory.createB20 (IB20Factory.B20Variant.STABLECOIN, salt, abi.encode (p), new bytes [](0 ));
8389 }
8490
@@ -108,15 +114,15 @@ contract B20FactoryCreateB20Test is B20FactoryTest {
108114
109115 /// @notice Verifies createToken reverts for any unsupported version byte on the SECURITY variant
110116 /// @dev Each variant arm has its own version check; this exercises the security arm's check.
111- function test_createB20_revert_unsupportedVersion_security (address caller , uint8 badVersion , bytes32 salt )
112- public
113- {
117+ function test_createB20_revert_unsupportedVersion_security (address caller , uint8 badVersion , bytes32 salt ) public {
114118 _assumeValidCaller (caller);
115119 vm.assume (badVersion != 1 );
116120 IB20Factory.B20SecurityCreateParams memory p = _securityParams ();
117121 p.version = badVersion;
118122 vm.prank (caller);
119- vm.expectRevert (abi.encodeWithSelector (IB20Factory.UnsupportedVersion.selector , badVersion, IB20Factory.B20Variant.SECURITY));
123+ vm.expectRevert (
124+ abi.encodeWithSelector (IB20Factory.UnsupportedVersion.selector , badVersion, IB20Factory.B20Variant.SECURITY)
125+ );
120126 factory.createB20 (IB20Factory.B20Variant.SECURITY, salt, abi.encode (p), new bytes [](0 ));
121127 }
122128
@@ -251,9 +257,7 @@ contract B20FactoryCreateB20Test is B20FactoryTest {
251257 /// `base.b20.security` namespace and `minimumRedeemable` at the
252258 /// `base.b20.redeem` namespace. Paired slot assertions confirm both fields
253259 /// land at the expected slots with the correct encodings.
254- function test_createB20_success_securitySeedsInitialState (address caller , bytes32 salt , uint256 minRedeem )
255- public
256- {
260+ function test_createB20_success_securitySeedsInitialState (address caller , bytes32 salt , uint256 minRedeem ) public {
257261 _assumeValidCaller (caller);
258262 IB20Factory.B20SecurityCreateParams memory p =
259263 _securityParams ("Security Test " , "SEC " , admin, APPLE_ISIN, minRedeem);
@@ -297,11 +301,7 @@ contract B20FactoryCreateB20Test is B20FactoryTest {
297301 PolicyRegistryConstants.ALWAYS_BLOCK_ID,
298302 "redeemPolicyIds slot lane 0 must hold ALWAYS_BLOCK_ID "
299303 );
300- assertEq (
301- packed >> 64 ,
302- uint256 (0 ),
303- "redeemPolicyIds slot reserved lanes must be zero on a fresh token "
304- );
304+ assertEq (packed >> 64 , uint256 (0 ), "redeemPolicyIds slot reserved lanes must be zero on a fresh token " );
305305 }
306306
307307 /// @notice Verifies the security REDEEM_SENDER_POLICY default does NOT leak into other
@@ -310,9 +310,7 @@ contract B20FactoryCreateB20Test is B20FactoryTest {
310310 /// namespace (`base.b20.redeem`); the base packed policy slots (`transferPolicyIds`,
311311 /// `mintPolicyIds` in the base `base.b20` namespace) must remain at their EVM zero
312312 /// defaults so the four base scopes still read as ALWAYS_ALLOW_ID.
313- function test_createB20_success_securityOtherPolicySlotsDefaultToAllow (address caller , bytes32 salt )
314- public
315- {
313+ function test_createB20_success_securityOtherPolicySlotsDefaultToAllow (address caller , bytes32 salt ) public {
316314 _assumeValidCaller (caller);
317315 address token = _createSecurity (caller, salt, _securityParams (), new bytes [](0 ));
318316
@@ -355,9 +353,7 @@ contract B20FactoryCreateB20Test is B20FactoryTest {
355353 /// in `initCalls`. The privileged-window bypass on the token means the factory-originated
356354 /// call succeeds without the role check. Post-creation the slot reflects the overridden
357355 /// value, NOT the factory-seeded default.
358- function test_createB20_success_securityRedeemPolicyOverridableViaInitCall (address caller , bytes32 salt )
359- public
360- {
356+ function test_createB20_success_securityRedeemPolicyOverridableViaInitCall (address caller , bytes32 salt ) public {
361357 _assumeValidCaller (caller);
362358 bytes [] memory initCalls = new bytes [](1 );
363359 initCalls[0 ] = abi.encodeWithSelector (
@@ -404,11 +400,7 @@ contract B20FactoryCreateB20Test is B20FactoryTest {
404400 assertFalse (MockB20 (token).hasRole (B20Constants.DEFAULT_ADMIN_ROLE, caller), "caller must not hold admin " );
405401 assertEq (IB20Security (token).securityIdentifier (IDENTIFIER_ISIN), DEFAULT_ISIN, "ISIN must still be set " );
406402
407- assertEq (
408- uint256 (vm.load (token, MockB20Storage.adminCountSlot ())),
409- 0 ,
410- "adminCount must be 0 on zero-admin path "
411- );
403+ assertEq (uint256 (vm.load (token, MockB20Storage.adminCountSlot ())), 0 , "adminCount must be 0 on zero-admin path " );
412404 _assertInitialized (token, "initialized must still be set on zero-admin path " );
413405 }
414406
@@ -444,11 +436,7 @@ contract B20FactoryCreateB20Test is B20FactoryTest {
444436 _stablecoinParams ("Test " , "TST " , admin, xFiat[i]),
445437 new bytes [](0 )
446438 );
447- assertEq (
448- IB20Stablecoin (token).currency (),
449- xFiat[i],
450- "multi-country X-prefix fiat code must round-trip "
451- );
439+ assertEq (IB20Stablecoin (token).currency (), xFiat[i], "multi-country X-prefix fiat code must round-trip " );
452440 }
453441 }
454442
@@ -471,8 +459,7 @@ contract B20FactoryCreateB20Test is B20FactoryTest {
471459 /// way the default emitter test pins decimals=18.
472460 function test_createB20_success_emitsB20Created_security (address caller , bytes32 salt ) public {
473461 _assumeValidCaller (caller);
474- IB20Factory.B20SecurityCreateParams memory p =
475- _securityParams ("Security Test " , "SEC " , admin, DEFAULT_ISIN, 0 );
462+ IB20Factory.B20SecurityCreateParams memory p = _securityParams ("Security Test " , "SEC " , admin, DEFAULT_ISIN, 0 );
476463 address predicted = factory.getB20Address (IB20Factory.B20Variant.SECURITY, caller, salt);
477464
478465 vm.expectEmit (true , true , false , true , address (factory));
@@ -517,9 +504,7 @@ contract B20FactoryCreateB20Test is B20FactoryTest {
517504 "factory must NOT appear in roles[ADMIN] slot "
518505 );
519506 assertEq (
520- uint256 (vm.load (token, MockB20Storage.adminCountSlot ())),
521- 1 ,
522- "adminCount must be 1 after bootstrap grant "
507+ uint256 (vm.load (token, MockB20Storage.adminCountSlot ())), 1 , "adminCount must be 1 after bootstrap grant "
523508 );
524509 _assertInitialized (token, "initialized marker must be set after bootstrap closes " );
525510 }
@@ -590,11 +575,7 @@ contract B20FactoryCreateB20Test is B20FactoryTest {
590575 // Paired slot assertion: packed adminCount lane is 0 (no
591576 // bootstrap grant happened) but the initialized bit is still
592577 // set (the factory closed the bootstrap window after returning).
593- assertEq (
594- uint256 (vm.load (token, MockB20Storage.adminCountSlot ())),
595- 0 ,
596- "adminCount must be 0 on zero-admin path "
597- );
578+ assertEq (uint256 (vm.load (token, MockB20Storage.adminCountSlot ())), 0 , "adminCount must be 0 on zero-admin path " );
598579 _assertInitialized (token, "initialized must still be set on zero-admin path " );
599580 }
600581
@@ -613,11 +594,7 @@ contract B20FactoryCreateB20Test is B20FactoryTest {
613594 // The stablecoin still got its variant data: currency is set.
614595 assertEq (IB20Stablecoin (token).currency (), "USD " , "stablecoin currency must still be set " );
615596
616- assertEq (
617- uint256 (vm.load (token, MockB20Storage.adminCountSlot ())),
618- 0 ,
619- "adminCount must be 0 on zero-admin path "
620- );
597+ assertEq (uint256 (vm.load (token, MockB20Storage.adminCountSlot ())), 0 , "adminCount must be 0 on zero-admin path " );
621598 _assertInitialized (token, "initialized must still be set on zero-admin path " );
622599 assertEq (
623600 vm.load (token, MockB20StablecoinStorage.currencySlot ()),
0 commit comments