Commit bd7258a7 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

Merge pull request #3143 from ethereum-optimism/fix/slither-ci

contracts-bedrock: fix slither
parents e736a4d0 5c0e604b
---
'@eth-optimism/contracts-bedrock': patch
---
Fix slither script
...@@ -16,6 +16,7 @@ remappings = [ ...@@ -16,6 +16,7 @@ remappings = [
extra_output = ['devdoc', 'userdoc', 'metadata', 'storageLayout'] extra_output = ['devdoc', 'userdoc', 'metadata', 'storageLayout']
bytecode_hash = 'none' bytecode_hash = 'none'
build_info = true build_info = true
build_info_path = 'artifacts/build-info'
ffi = true ffi = true
fuzz_runs = 16 fuzz_runs = 16
......
#!/bin/bash #!/bin/bash
if [ ! -d forge-artifacts/build-info ]; then rm -rf artifacts forge-artifacts
npx hardhat compile
fi # Handle slither bug unable to work with the foundry tests
TEMP=$(mktemp -d)
mv contracts/test $TEMP/test
cp -rf forge-artifacts/build-info artifacts/build-info
slither . slither .
mv $TEMP/test contracts/test
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment