This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
AbiEncode::encode(complex_solidity_datastruct) return wrong data #2752
Labels
bug
Something isn't working
Version
ethers v2.0.11
Platform
MacOs
Description
When meet complex struct, like:
When using solidity's abi.encode(), it will add a "offset prefix" to indicate the data offset in bytes, example code here:
The corresponding(correct) result is:
When I tried this code in rust, using the data struct from Abigen:
I got this result:
The "offset prefix", in this case is uint256(0x20), is missing somehow.
The text was updated successfully, but these errors were encountered: