Skip to content

Commit 9a15001

Browse files
authored
Create FORGE_TIPS.md
1 parent 12ff6c5 commit 9a15001

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

FORGE_TIPS.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
3+
### formatting ds-test logs
4+
() https://github.com/dapphub/dapptools/blob/728a9245fa5f78589b0cedec0ade2da5433ad792/src/hevm/src/EVM/UnitTest.hs#L830
5+
1. https://github.com/gakonst/foundry/blob/master/evm-adapters/src/sputnik/cheatcodes/mod.rs#L68-L88
6+
2. https://github.com/gakonst/foundry/blob/master/evm-adapters/src/sputnik/cheatcodes/cheatcode_handler.rs#L76-L109
7+
3. https://github.com/gakonst/foundry/blob/master/evm-adapters/src/sputnik/cheatcodes/cheatcode_handler.rs#L263
8+
9+
10+
11+
### VSCode Config
12+
13+
> https://github.com/gakonst/dapptools-template/blob/master/.vscode/settings.json
14+
15+
```json
16+
17+
{
18+
"settings": {
19+
"solidity.remappings": [
20+
"ds-test/=$HOME/forge-example/forge-test/lib/ds-test/src/"
21+
]
22+
}
23+
}
24+
25+
```
26+
27+
## Remappings
28+
29+
```sh
30+
ds-test/=$(pwd)/lib/ds-test/src/
31+
```
32+
33+
### passing state to `ds-test`
34+
35+
```sh
36+
export DAPP_LIBRARIES=$(dapp --library-addresses)
37+
export DAPP_TEST_STATE=$(dapp --make-library-state)

0 commit comments

Comments
 (0)