Skip to content

Commit

Permalink
finished setup fort github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iChristwin committed Oct 20, 2023
1 parent eef1efb commit 58b5b5e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@
src = "src"
out = "out"
libs = ["lib"]
solc-version = "0.8.19"
optimizer = true
optimizer-runs = 1000
solc-version = "0.8.19"

remappings = [
"@prb/math@4.0.1/=lib/prb-math/",
"@openzeppelin/contracts@4.9.3/=lib/openzeppelin-contracts/contracts/"
]

[rpc_endpoints]
iotex-mainnet = "https://babel-api.mainnet.iotex.io/"

[fuzz]
seed = 0x544D

[invariant]
runs = 256


# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
3 changes: 2 additions & 1 deletion test/Solaxy.invariant.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ contract SolaxyInvarantTest is Test {
address public handlerAddress;

function setUp() public {
vm.createSelectFork("https://babel-api.mainnet.iotex.io/", 24_838_201);
string memory url = vm.rpcUrl("iotex-mainnet");
vm.createSelectFork(url, 24_838_201);

slx = new Solaxy(address(99));
slxAddress = address(slx);
Expand Down
3 changes: 2 additions & 1 deletion test/Solaxy.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ contract SolaxyTest is Test {
uint256 public constant oneMillionDaiBalance = 1e6 * 1e18;

function setUp() public {
vm.createSelectFork("https://babel-api.mainnet.iotex.io/", 24_838_201);
string memory url = vm.rpcUrl("iotex-mainnet");
vm.createSelectFork(url, 24_838_201);
here = address(this);

slx = new Solaxy(address(99));
Expand Down

0 comments on commit 58b5b5e

Please sign in to comment.