Perelyn-sama / solidity-hacks

My attempt to learn about smart contract security ^_^
12 stars 4 forks source link

Write test for FrontRunning.sol #2

Open Perelyn-sama opened 2 years ago

Perelyn-sama commented 2 years ago

Find a way to simulate a front running attack with foundry. Anvil or cheatcodes could help

Perelyn-sama commented 2 years ago

anvil options that could help --no-mining Disable auto and interval mining, and mine on demand instead. --order How transactions are sorted in the mempool [default: fees]