Skip to content

Commit

Permalink
Merge pull request #497 from fuzzland/fix_contract_lib
Browse files Browse the repository at this point in the history
Fix contract lib
  • Loading branch information
jacob-chia authored Jun 3, 2024
2 parents 1fcae96 + 1706b83 commit 57cd350
Show file tree
Hide file tree
Showing 32 changed files with 1,697 additions and 39 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ combined.json
/**/build/
Move.lock
/w_**/
/tests/evm_manual/story-core
run_ityfuzz.sh
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
[submodule "tests/evm_manual/foundry1/lib/openzeppelin-contracts"]
path = tests/evm_manual/foundry1/lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts

[submodule "tests/evm_manual/foundry/lib/forge-std"]
path = tests/evm_manual/foundry/lib/forge-std
url = https://github.com/foundry-rs/forge-std
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,4 @@ tracing = "0.1"
tracing-subscriber = "0.3"
colored = "2.0"
evmole = "0.3.2"
semver = "1.0.22"
15 changes: 15 additions & 0 deletions run_ityfuzz.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash


# 定义path变量
path="./tests/evm/flashloan"

# 执行 cargo build 命令
cargo build --release --features "cmp dataflow evm print_txn_corpus full_trace" --no-default-features

solc "${path}/test.sol" -o "${path}/" --bin --abi --overwrite --base-path "." --combined-json "bin-runtime,srcmap-runtime"



# 执行ityfuzz命令
./target/release/ityfuzz evm -t "${path}/*" -f --panic-on-bug
Loading

0 comments on commit 57cd350

Please sign in to comment.