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

TS: Builder API types are cascaded as any after .method call. #1434

Closed
kevinrodriguez-io opened this issue Feb 11, 2022 · 1 comment · Fixed by #1539
Closed

TS: Builder API types are cascaded as any after .method call. #1434

kevinrodriguez-io opened this issue Feb 11, 2022 · 1 comment · Fixed by #1539

Comments

@kevinrodriguez-io
Copy link
Contributor

const result = await program.methods
      .makeConnection(to)
      .accounts({
        from,
        systemProgram: anchor.web3.SystemProgram.programId,
      })
      .signers([fromWallet.payer])
      .rpc();

.accounts is cascaded as any, breaking completion.

Screen Shot 2022-02-10 at 22 12 33

@Eliascm17
Copy link

I am also experiencing this. Might just stick to the Instruction namespace until this is fixed.

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

Successfully merging a pull request may close this issue.

2 participants