-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WARNING:halmos:path.append(false) in Damn Vulnerable Defi - NaiveReceiver.t.sol #338
Comments
// Start perpetual prank from an address that has some ether
// tx.origin is set to the origin parameter
function startHoax(address msgSender, address origin) internal virtual {
vm.deal(msgSender, 1 << 128);
vm.startPrank(msgSender, origin);
} This deals 3.4e+20 ether to the recipient (!) But in halmos' # practical assumption on the max balance per account
self.path.append(ULT(value, con(2**96))) And because 1<<128 is in fact bigger than 1<<96, we end up adding |
Workaround: for now, don't use |
We should deal with this more gracefully on the halmos side, some ideas:
|
Took me an hour before I checked in here!! Was doing
just lowering the deal solved it. Might be worth a readme adjustement! on # |
some alternative ideas:
|
Describe the bug
As reported by https://t.me/c/1815219512/2277 and easily reproducible. We get the following warnings during the execution of
setUp()
:With some extra debug info:
To Reproduce
Check out https://github.com/igorganich/damn-vulnerable-defi-halmos/blob/master/test/naive-receiver/NaiveReceiver.t.sol
Run
halmos --function test_naiveReceiver
Environment:
The text was updated successfully, but these errors were encountered: