Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Abi: failed to parse tuple param for function #887

Open
calldata opened this issue Feb 9, 2022 · 2 comments
Open

Abi: failed to parse tuple param for function #887

calldata opened this issue Feb 9, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@calldata
Copy link

calldata commented Feb 9, 2022

Version
0.6.2

Platform
macos(m1)

Description

example code

fn main() {
    let parser = AbiParser::default().parse_function("function foo((bool,bool))");

    println!("{:?}", parser);
}

output

Err(Message("Expected input args parentheses at `function foo((bool,bool))`"))

Expect output
should correctly parse function with tuple params

@calldata calldata added the bug Something isn't working label Feb 9, 2022
@gakonst
Copy link
Owner

gakonst commented Feb 9, 2022

Ah yes - we had talked about writing a proper parser w @mattsse, right now we do it manually

@mattsse
Copy link
Collaborator

mattsse commented Feb 9, 2022

yes this is a known issue where the ethabi::Reader fails to parse functions that only have a single tuple parameter.
ref #474

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants