Closed jqphu closed 4 months ago
Looks like the original data contains these extra 28 bytes at the end, which apparently are ignored in Solidity: d00dfeeddeadbeef
and an address 8932eb23bad9bddb5cf81426f78279a53c6c3b71
Looks like the original data contains these extra 28 bytes at the end, which apparently are ignored in Solidity:
d00dfeeddeadbeef
and an address8932eb23bad9bddb5cf81426f78279a53c6c3b71
weird, I wonder if this is a quirk with the protocol where it manually uses this extra data somewhere off chain.
Either way, happy to close this and just use validate: false for now.
Component
other
What version of Alloy are you on?
Operating System
macOS (Apple Silicon)
Describe the bug
gmeow,
trying to decode a function signature.
Defined the ABI as:
sol! {
[derive(Debug)]
... }
Calling it with validate: false works:
However, when I set validate: true
I get "reserialization did not match original". What is validating doing under the hood any why is it erroring?
Discussed with Dani here: https://t.me/ethers_rs/39183 Repro: https://github.com/jqphu/abi_decode_validate_fails/blob/main/src/main.rs