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

init(init: Init) results in Duplicate identifier 'init' error in TS wrappers #1590

Open
anton-trunov opened this issue Jan 27, 2025 · 0 comments
Labels
kind: bug Something isn't working or isn't right scope: ts-wrappers Implementation of TypeScript wrappers generation for Sandbox tests (src/bindings)
Milestone

Comments

@anton-trunov
Copy link
Member

anton-trunov commented Jan 27, 2025

The following snippet

import "@stdlib/deploy";

struct Init { foo: Int as uint8 }

contract Quux with Deployable {
    init(init: Init) { }
}

results in the following error when trying to use generated TS wrappers:

Identifier 'init' has already been declared
@anton-trunov anton-trunov added kind: bug Something isn't working or isn't right scope: ts-wrappers Implementation of TypeScript wrappers generation for Sandbox tests (src/bindings) labels Jan 27, 2025
@anton-trunov anton-trunov added this to the v1.6.0 milestone Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working or isn't right scope: ts-wrappers Implementation of TypeScript wrappers generation for Sandbox tests (src/bindings)
Projects
None yet
Development

No branches or pull requests

1 participant