Skip to content
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

[Bug] Cannot compile alloy-json-abi at 0.7.6 #168

Open
Ifechukwudaniel opened this issue Oct 24, 2024 · 1 comment
Open

[Bug] Cannot compile alloy-json-abi at 0.7.6 #168

Ifechukwudaniel opened this issue Oct 24, 2024 · 1 comment

Comments

@Ifechukwudaniel
Copy link

Ifechukwudaniel commented Oct 24, 2024

I use 0.7.6 and cannot compile it due to errors inside alloy-json-abi.

Here's the output when building:

ksnip_20241024-133033

ksnip_20241024-133033

    |
181 | pub(crate) fn parse_sig<const O: bool>(s: &str) -> ParseSigResult<Param> {
    |                                                    --------------------- expected `Result<(alloc::string::String, Vec<Param>, Vec<Param>, bool), parser::Error>` because of return type
182 |     parser::utils::parse_signature::<O, _, _>(s, |p| mk_param(p.name, p.ty))
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(String, ..., ..., ...), ...>`, found `Result<ParsedSignature<Param>, Error>`
    |
    = note: expected enum `Result<(alloc::string::String, Vec<Param>, Vec<Param>, bool), _>`
               found enum `Result<ParsedSignature<Param>, _>`

error[E0308]: mismatched types
   --> /home/daniel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alloy-json-abi-0.7.6/src/utils.rs:187:5
    |
186 | pub(crate) fn parse_event_sig(s: &str) -> ParseSigResult<EventParam> {
    |                                           -------------------------- expected `Result<(alloc::string::String, Vec<EventParam>, Vec<EventParam>, bool), parser::Error>` because of return type
187 |     parser::utils::parse_signature::<false, _, _>(s, mk_eparam)
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(String, ..., ..., ...), ...>`, found `Result<ParsedSignature<...>, ...>`
    |
    = note: expected enum `Result<(alloc::string::String, Vec<EventParam>, Vec<EventParam>, bool), _>`
               found enum `Result<ParsedSignature<EventParam>, _>`

error[E0308]: mismatched types
   --> /home/daniel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alloy-json-abi-0.7.6/src/utils.rs:182:5
    |
181 | pub(crate) fn parse_sig<const O: bool>(s: &str) -> ParseSigResult<Param> {
    |                                                    --------------------- expected `Result<(std::string::String, Vec<Param>, Vec<Param>, bool), parser::Error>` because of return type
182 |     parser::utils::parse_signature::<O, _, _>(s, |p| mk_param(p.name, p.ty))
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(String, ..., ..., ...), ...>`, found `Result<ParsedSignature<Param>, Error>`
    |
    = note: expected enum `Result<(std::string::String, Vec<Param>, Vec<Param>, bool), _>`
               found enum `Result<ParsedSignature<Param>, _>`

error[E0308]: mismatched types
   --> /home/daniel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alloy-json-abi-0.7.6/src/utils.rs:187:5
    |
186 | pub(crate) fn parse_event_sig(s: &str) -> ParseSigResult<EventParam> {
    |                                           -------------------------- expected `Result<(std::string::String, Vec<EventParam>, Vec<EventParam>, bool), parser::Error>` because of return type
187 |     parser::utils::parse_signature::<false, _, _>(s, mk_eparam)
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(String, ..., ..., ...), ...>`, found `Result<ParsedSignature<...>, ...>`
    |
    = note: expected enum `Result<(std::string::String, Vec<EventParam>, Vec<EventParam>, bool), _>`
               found enum `Result<ParsedSignature<EventParam>, _>`

Proper error logs

@Ifechukwudaniel
Copy link
Author

Ifechukwudaniel commented Oct 24, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant