We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SolType::abi_encode
Bytes
to be investigated, this bug does not happen for abi_encode_packed
abi_encode_packed
This is not an Alloy bug, but our own bug
The text was updated successfully, but these errors were encountered:
it does not affect the oracle as we work with packed encoding anyways
Sorry, something went wrong.
the problem is in this line: https://github.com/firstbatchxyz/dkn-l2-oracle/blob/master/tests/abi_encode_test.rs#L118
the bytes array is encoded as if its independent, therefore the offset it results in respects only itself; it should respect other structs as well.
bytes
for that, we need to create a large complex type ephemerally (see https://docs.rs/alloy-sol-types/latest/alloy_sol_types/trait.SolType.html) and then call .abi_encode on top of it.
.abi_encode
erhant
No branches or pull requests
to be investigated, this bug does not happen for
abi_encode_packed
This is not an Alloy bug, but our own bug
The text was updated successfully, but these errors were encountered: