-
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
calling ds-test/test.sol's failed()
results in 'NoneType' object has no attribute 'size'
#358
Comments
fyi, it's not ds-test any longer, it's the one in forge-std:
|
basically, for this particular problem, we can handle this similar to what we do for fail(). in general, it would be better to raise an exception when vm.load or vm.store is called for nonexisting account. |
btw, in what context, is this |
I'm not sure how we get there, this was a minimal repro I extract from a more complicated setup in damn-vulnerable-defi |
I set the contract as "contract << contractName >> is ..., Test" to use vm.assume() inside of contract function |
i see. now i see what was going on. thanks for the context. |
Describe the bug
with halmos 0.1.14.dev15+g060a6d8.d20240813:
failed()
does the following:In halmos, vm.load is handled like this:
resolve_address_alias returns
None
forload_account=0x7109709ecfa91a80626ff3989d68f67f5b1dd12d
, which leads to the downstream exception insevm.sload
The text was updated successfully, but these errors were encountered: