You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When is this gonna fixed? I'm even surprised that another person from my company already reported this like two months ago.
Also bytes is not handled in a proper way.
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (da2392e 2023-08-02T09:00:14.068523319Z)
What command(s) is the bug in?
cast index
Operating System
Linux
Describe the bug
cast index error if the
key_type
is a string. (https://book.getfoundry.sh/reference/cast/cast-index)The cast index uses
abi.encode
to calculate slots for the mapping type (https://github.com/foundry-rs/foundry/blob/master/crates/cast/src/lib.rs#L1664C75-L1664C75), but it doesn't work for string .abi.encodePakced
works instead ofabi.encode
for string.The contract code: https://arbiscan.io/address/0xA32E7eA512525B89171F3b48C7F01bD933d17c59#readContract
This issue applies to
bytes
types as well asstrings
.The text was updated successfully, but these errors were encountered: