Place the following lines of codes here `briVault.t.sol`
<details>
<summary>Proof Of Code</summary>
```solidity
function testUnlimitedMinting() public {
uint256 initialSupply1 = britechToken.totalSupply();
assertEq(initialSupply1, 0, "should start with 0 supply");
britechToken.mint();
uint256 supplyAfter1 = britechToken.totalSupply();
console.log("Total supply after mint 1:", supplyAfter1 / 1e18, "tokens");
assertEq(supplyAfter1, 10_000_000 * 1e18);
britechToken.mint();
uint256 supplyAfter2 = britechToken.totalSupply();
console.log("Total supply after mint 2:", supplyAfter2 / 1e18, "tokens");
assertEq(supplyAfter2, 20_000_000 * 1e18);
britechToken.mint();
uint256 supplyAfter3 = britechToken.totalSupply();
console.log("Total supply after mint 3:", supplyAfter3 / 1e18, "tokens");
assertEq(supplyAfter3, 30_000_000 * 1e18);
britechToken.mint();
uint256 supplyAfter4 = britechToken.totalSupply();
console.log("Total supply after mint 4:", supplyAfter4 / 1e18, "tokens");
assertEq(supplyAfter4, 40_000_000 * 1e18);
for (uint i = 0; i < 96; i++) {
britechToken.mint();
}
uint256 finalMint = britechToken.totalSupply();
address actualOwner = britechToken.owner();
console.log("Final total supply:", finalMint / 1e18, "tokens");
console.log("Owner balance:", britechToken.balanceOf(actualOwner) / 1e18, "tokens");
assertEq(finalMint, 1_000_000_000 * 1e18);
assertEq(britechToken.balanceOf(address(actualOwner)), 1_000_000_000 * 1e18);
}
```
</details>
- remove this code
+ add this code
Implement a fixed total supply in the constructor rather than an owner-controlled mint function.
This ensures the supply cannot be increased after deployment.
```diff
+ constructor() ERC20("BriTechLabs", "BTT") Ownable(msg.sender) {}
- function mint() public onlyOwner {
- _mint(owner(), 10_000_000 * 1e18);
}
constructor() ERC20("BriTechLabs", "BTT") Ownable(msg.sender) {
+ _mint(msg.sender, 10_000_000 * 1e18);
}
```