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]: Could not compile alloy-json-abi (lib) due to 2 previous errors #340

Open
2 of 4 tasks
Ifechukwudaniel opened this issue Oct 15, 2024 · 4 comments
Open
2 of 4 tasks
Labels
needs triage Needs to be assigned the appropriate labels type: bug Something is not working as intended.

Comments

@Ifechukwudaniel
Copy link

Ifechukwudaniel commented Oct 15, 2024

What happened?

When i run ./scripts/e2e-tests.sh it returns

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>, _>`

error: could not compile `alloy-json-abi` (lib) due to 2 previous errors

platform

  • linux
  • windows
  • macos

Expected behavior

I was supposed to run the e2e test

Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines
@Ifechukwudaniel Ifechukwudaniel added needs triage Needs to be assigned the appropriate labels type: bug Something is not working as intended. labels Oct 15, 2024
@Ifechukwudaniel
Copy link
Author

@qalisander any insight

@bidzyyys
Copy link
Collaborator

@Ifechukwudaniel do you use proper Rust version?
Can you try: NIGHTLY_TOOLCHAIN=nightly-2024-01-01 ./scripts/e2e-tests.sh ?

@bidzyyys
Copy link
Collaborator

Hey @Ifechukwudaniel any updates from your side?

@Ifechukwudaniel
Copy link
Author

yeah did that same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Needs to be assigned the appropriate labels type: bug Something is not working as intended.
Projects
Status: Todo
Development

No branches or pull requests

2 participants