Skip to content

Commit

Permalink
feat: add foundry testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ojaros committed Oct 25, 2023
1 parent 1cf1304 commit 7f718a0
Show file tree
Hide file tree
Showing 10 changed files with 731 additions and 92 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
347 changes: 265 additions & 82 deletions contracts/Poker.sol

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[profile.default]
src = 'contracts'
out = 'out'
libs = ['node_modules', 'lib']
test = 'test'
cache_path = 'cache_forge'
2 changes: 2 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import type { HardhatUserConfig } from "hardhat/config";
import type { NetworkUserConfig } from "hardhat/types";
import { resolve } from "path";

import "@nomicfoundation/hardhat-foundry";

import "./tasks/accounts";
import "./tasks/add";
import "./tasks/getCount";
Expand Down
1 change: 1 addition & 0 deletions lib/forge-std
Submodule forge-std added at f73c73
Loading

0 comments on commit 7f718a0

Please sign in to comment.