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

Disable 'Send It' button for Proposal comment when user has no voting power and show tooltip #312

Open
SebastianBor opened this issue Feb 5, 2022 · 2 comments

Comments

@SebastianBor
Copy link
Collaborator

No description provided.

@RaymondDashWu
Copy link
Contributor

RaymondDashWu commented Feb 6, 2022

About to make a PR for this issue but this line is preventing me from pushing. I haven't touched that part of the codebase yet. Any advice?

Argument of type '[number, number, { [x: string]: {}; }, BN, number, boolean, BN, { accounts: { registrar: PublicKey; voter: PublicKey; voterAuthority: PublicKey; ... 10 more ...; rent: PublicKey; }; }]' is not assignable to parameter of type '[...unknown[], Context<Accounts<{ name: "registrar"; isMut: false; isSigner: false; } | { name: "voter"; isMut: true; isSigner: false; } | { name: "voterAuthority"; isMut: false; isSigner: false; } | { name: "voterWeightRecord"; isMut: true; isSigner: false; } | ... 8 more ... | { ...; }>>]'.
  Type at position 7 in source is not compatible with type at position 1 in target.
    The types of 'accounts' are incompatible between these types.
      Type '{ registrar: PublicKey; voter: PublicKey; voterAuthority: PublicKey; voterWeightRecord: PublicKey; vault: PublicKey; depositToken: PublicKey; ... 7 more ...; rent: PublicKey; }' is not assignable to type 'Accounts<{ name: "registrar"; isMut: false; isSigner: false; } | { name: "voter"; isMut: true; isSigner: false; } | { name: "voterAuthority"; isMut: false; isSigner: false; } | { name: "voterWeightRecord"; isMut: true; isSigner: false; } | ... 8 more ... | { ...; }>'.
        Object literal may only specify known properties, and 'tokenAuthority' does not exist in type 'Accounts<{ name: "registrar"; isMut: false; isSigner: false; } | { name: "voter"; isMut: true; isSigner: false; } | { name: "voterAuthority"; isMut: false; isSigner: false; } | { name: "voterWeightRecord"; isMut: true; isSigner: false; } | ... 8 more ... | { ...; }>'.ts(2345)

Fixed. Had to update my packages. PR incoming

@RaymondDashWu
Copy link
Contributor

Merged. @SebastianBor can you close this issue?

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

No branches or pull requests

2 participants