From 858935ab835d8a71d0b7db40cc0acb6436e70940 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 15 Jan 2026 07:05:20 +0000 Subject: [PATCH 1/2] refactor(test): rename fuzz tests to follow testFuzz_ naming convention --- .../test/L2/OptimismSuperchainERC20Factory.t.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/contracts-bedrock/test/L2/OptimismSuperchainERC20Factory.t.sol b/packages/contracts-bedrock/test/L2/OptimismSuperchainERC20Factory.t.sol index f2a87f9e14189..da88897d59f6e 100644 --- a/packages/contracts-bedrock/test/L2/OptimismSuperchainERC20Factory.t.sol +++ b/packages/contracts-bedrock/test/L2/OptimismSuperchainERC20Factory.t.sol @@ -42,7 +42,7 @@ abstract contract OptimismSuperchainERC20Factory_TestInit is CommonTest { /// @notice Tests the `deploy` function of the `OptimismSuperchainERC20Factory` contract. contract OptimismSuperchainERC20Factory_Deploy_Test is OptimismSuperchainERC20Factory_TestInit { /// @notice Test that calling `deploy` with valid parameters succeeds. - function test_deploy_succeeds( + function testFuzz_deploy_succeeds( address _caller, address _remoteToken, string memory _name, @@ -72,7 +72,7 @@ contract OptimismSuperchainERC20Factory_Deploy_Test is OptimismSuperchainERC20Fa } /// @notice Test that calling `deploy` with the same parameters twice reverts. - function test_deploy_sameTwice_reverts( + function testFuzz_deploy_sameTwice_reverts( address _caller, address _remoteToken, string memory _name, From 644d9d388f1297a70d2d25637e6cdf2bb84781d6 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 15 Jan 2026 07:06:00 +0000 Subject: [PATCH 2/2] test(contracts): add version format validation for OptimismSuperchainERC20Factory --- .../test/L2/OptimismSuperchainERC20Factory.t.sol | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/contracts-bedrock/test/L2/OptimismSuperchainERC20Factory.t.sol b/packages/contracts-bedrock/test/L2/OptimismSuperchainERC20Factory.t.sol index da88897d59f6e..5c72b4238d26b 100644 --- a/packages/contracts-bedrock/test/L2/OptimismSuperchainERC20Factory.t.sol +++ b/packages/contracts-bedrock/test/L2/OptimismSuperchainERC20Factory.t.sol @@ -6,6 +6,7 @@ import { CommonTest } from "test/setup/CommonTest.sol"; // Libraries import { CREATE3, Bytes32AddressLib } from "@rari-capital/solmate/src/utils/CREATE3.sol"; +import { SemverComp } from "src/libraries/SemverComp.sol"; // Target contract import { IOptimismSuperchainERC20 } from "interfaces/L2/IOptimismSuperchainERC20.sol"; @@ -92,3 +93,12 @@ contract OptimismSuperchainERC20Factory_Deploy_Test is OptimismSuperchainERC20Fa l2OptimismSuperchainERC20Factory.deploy(_remoteToken, _name, _symbol, _decimals); } } + +/// @title OptimismSuperchainERC20Factory_Version_Test +/// @notice Tests the `version` function of the `OptimismSuperchainERC20Factory` contract. +contract OptimismSuperchainERC20Factory_Version_Test is OptimismSuperchainERC20Factory_TestInit { + /// @notice Tests that version returns a valid semver string. + function test_version_validFormat_succeeds() external view { + SemverComp.parse(l2OptimismSuperchainERC20Factory.version()); + } +}