alloy-rs / alloy-rs/core

[Docs] abi_decode_returns_validate is not explicit about what the validation entails

Open
#1,035 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
966
Forks
274
Avg merge
1d 21h
Merged PRs (30d)
15

Description

Very much as described by the title.

I'm trying to decode a return from a call, but I'm not sure whether to use `abi_decode_returns` or `abi_decode_returns_validade`, I get that the second does validations but which ones? What gets validated and how?

I've looked in the codebase for answers but had some trouble figuring it out.

I went down the rabbit hole in the docs and it keeps moving me deeper, teasing, but never truly answering.
It took me [here](https://docs.rs/alloy-sol-types/1.2.1/src/alloy_sol_types/types/ty.rs.html#314-321) and now my question becomes: is the validation a type check?

I'm open to make the docs more explicit once this becomes clear

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.