mirror of
https://github.com/vacp2p/foundry-template.git
synced 2026-01-09 15:17:57 -05:00
This is an initial take on adjusting the foundry-template to the Vac's smart contract unit's needs. In a nutshell what this does is: 1. Update README to not refer to upstream repo where not necessary 2. Removes PRBergTest library from dependencies 3. Removes `FUNDING.qml` 4. Adjust CI actions There are more things to be done and decided on in follow-up commits.
21 lines
442 B
Solidity
21 lines
442 B
Solidity
// SPDX-License-Identifier: UNLICENSED
|
|
pragma solidity >=0.8.19 <0.9.0;
|
|
|
|
import { Test, console } from "forge-std/Test.sol";
|
|
|
|
import { Foo } from "../src/Foo.sol";
|
|
|
|
contract FooTest is Test {
|
|
Foo internal foo;
|
|
|
|
function setUp() public virtual {
|
|
foo = new Foo();
|
|
}
|
|
|
|
function test_Example() external {
|
|
console.log("Hello World");
|
|
uint256 x = 42;
|
|
assertEq(foo.id(x), x, "value mismatch");
|
|
}
|
|
}
|