diff --git a/test/README.md b/test/README.md index 0a5b7fe..21a5cb3 100644 --- a/test/README.md +++ b/test/README.md @@ -21,7 +21,8 @@ token distribution while mimicking DAI's behaviour. ## Usage -Add environment variable `MAX_SUPPLY` to set the maximum supply of the token, otherwise it defaults to 10 million tokens. +Add environment variable `MAX_SUPPLY` to set the maximum supply of the token, otherwise it defaults to 10 million +tokens. ### Deploy new TestStableToken with proxy contract diff --git a/test/TestStableToken.sol b/test/TestStableToken.sol index 8f64e7f..fb75c27 100644 --- a/test/TestStableToken.sol +++ b/test/TestStableToken.sol @@ -103,15 +103,12 @@ contract TestStableTokenFactory is BaseScript { // Deploy the implementation address implementation = address(new TestStableToken()); - // Encode initializer calldata to run in proxy context (maxSupply) - bytes memory initData = abi.encodeCall(TestStableToken.initialize, (defaultMaxSupply)); + // Encode initializer calldata to run in proxy context (maxSupply) + bytes memory initData = abi.encodeCall(TestStableToken.initialize, (defaultMaxSupply)); // Deploy ERC1967Proxy with initialization data so storage (owner, maxSupply) is set atomically ERC1967Proxy proxy = new ERC1967Proxy(implementation, initData); - // // Only check maxSupply was initialized; owner checks are optional for basic deployments - // address proxyAddr = address(proxy); - return address(proxy); } }