-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(cheatcodes): convert fixed bytes to bytes in vm.rpc tuple result #9117
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
crates/cheatcodes/src/evm/fork.rs
Outdated
// Convert fixed bytes to bytes in tuple to prevent encoding issues. | ||
// See: <https://github.com/foundry-rs/foundry/issues/7858> | ||
if let DynSolValue::FixedBytes(bytes, size) = *val { | ||
*val = DynSolValue::Bytes(bytes.as_slice()[..size].to_vec()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls just extract the function and make it recursive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed in f38f578, please check
…oundry-rs#9117) * fix(cheatcodes): convert fixed bytes to bytes in vm.rpc tuple result * Changes after review: recursive convert_to_bytes fn
Motivation
Closes #7858
Solution