From e44623e3e0b2a98e0e23a9952acb5dcdd67d0d07 Mon Sep 17 00:00:00 2001 From: katzman Date: Tue, 16 Jun 2026 14:40:09 -0700 Subject: [PATCH] docs: fix encodeUpdateSupplyCap no-cap sentinel natspec The no-cap sentinel (and maximum permitted supply cap) is type(uint128).max per B20Constants.MAX_SUPPLY_CAP and IB20.supplyCap / updateSupplyCap, not type(uint256).max. Correct the encodeUpdateSupplyCap @param so the helper's documentation matches the interface it encodes. Generated with Claude Code Co-Authored-By: Claude --- src/lib/B20FactoryLib.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/B20FactoryLib.sol b/src/lib/B20FactoryLib.sol index a6f778b..792096d 100644 --- a/src/lib/B20FactoryLib.sol +++ b/src/lib/B20FactoryLib.sol @@ -135,7 +135,7 @@ library B20FactoryLib { //////////////////////////////////////////////////////////////*/ /// @notice Encodes a bootstrap initCall to `IB20.updateSupplyCap`. - /// @param newSupplyCap New supply cap (`type(uint256).max` for no cap). + /// @param newSupplyCap New supply cap (`type(uint128).max` for no cap). function encodeUpdateSupplyCap(uint256 newSupplyCap) internal pure returns (bytes memory) { return abi.encodeCall(IB20.updateSupplyCap, (newSupplyCap)); }