foundry-rs / foundry-rs/forge-std
bug(StdStorage): unable to find bool slot within map struct
- Dominant language
- Solidity
- Stars
- 1.1k
- Forks
- 520
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 9
Description
Hey guys,
Seems like `stdStorage` unable to find `bool` slot within a map struct variable. I debug and found out that the `rdata` not return hex"1337" if `address.staticcall` to the bool slot. The whole bytes32 just become `0000000000000000000000000000000000000000000000000000000000000000` as you can see below:

You can reproduce with this contract: https://github.com/spicysquid168/solidity-playground/blob/main/src/TryStdStorageBool.sol
Run by `forge script ./src/TryStdStorageBool.sol -vvv`
Thanks,
Contributor guide
Assessment
This issue has not been assessed yet.