Auto Format Code with forge fmt

This commit is contained in:
David E. Perez Negron R 2023-08-24 00:19:29 -06:00
parent 97d07e9ea7
commit dd2308a1c2
4 changed files with 5 additions and 9 deletions

View File

@ -2,10 +2,10 @@
pragma solidity ^0.8.20;
contract Counter {
uint public count;
uint256 public count;
// Funcion to get the current count
function get() public view returns (uint) {
function get() public view returns (uint256) {
return count;
}

View File

@ -2,7 +2,7 @@ pragma solidity ^0.8.20;
import "solmate/tokens/ERC20.sol";
contract Token is ERC20("name", "symbol", 18){}
contract Token is ERC20("name", "symbol", 18) {}
import "@openzeppelin/contracts/access/Ownable.sol";

View File

@ -19,7 +19,7 @@ contract CounterTest is Test {
function testFailDec() public {
counter.dec();
}
function testDecUnderFlow() public {
vm.expectRevert(stdError.arithmeticError);
counter.dec();

View File

@ -12,10 +12,6 @@ contract CounterTest is Test {
}
function testGreet() public {
assertEq(
helloWorld.greet(),
"Hello World!"
);
assertEq(helloWorld.greet(), "Hello World!");
}
}