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

Resolve Solidity paths in sol! #82

Closed
Tracked by #74
DaniPopes opened this issue Jun 8, 2023 · 1 comment
Closed
Tracked by #74

Resolve Solidity paths in sol! #82

DaniPopes opened this issue Jun 8, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@DaniPopes
Copy link
Member

Custom types are Solidity paths, and currently we panic if it's longer than 1 ident.

@DaniPopes
Copy link
Member Author

This is now implemented

sol! {
    interface I {
        struct S {
            uint x;
        }
    }
    function func(I.S memory stuff);
}

let _ = funcCall { stuff: I::S { x: U256::ZERO } };

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

No branches or pull requests

1 participant