Skip to content

Conversation

@lnrocket
Copy link

@lnrocket lnrocket commented May 13, 2025

Right after cloning the Template and ran the code, I encountered this error:

TS2322: Type 'Account' is not assignable to type '{ readonly publicKey: Uint8Array; address: string; prefixedAddress(prefix?: number | undefined): string; sign(message: string | Uint8Array<...>): Uint8Array<...>; verify(message: string | Uint8Array<...>, signature: string | Uint8Array<...>): boolean; signer: { ...; }; } | undefined'.
Type 'Account' is missing the following properties from type '{ readonly publicKey: Uint8Array; address: string; prefixedAddress(prefix?: number | undefined): string; sign(message: string | Uint8Array): Uint8Array<...>; verify(message: string | Uint8Array<...>, signature: string | Uint8Array<...>): boolean; signer: { ...; }; }': publicKey, prefixedAddress, verify

Going back to the history of the code, I noticed the solution is simply reverting the code of the last commit.

lnrocket added 2 commits May 13, 2025 21:13
Right after cloning the SDK and ran the code, I encountered this error:
TS2322: Type 'Account' is not assignable to type '{ readonly publicKey: Uint8Array; address: string; prefixedAddress(prefix?: number | undefined): string; sign(message: string | Uint8Array<...>): Uint8Array<...>; verify(message: string | Uint8Array<...>, signature: string | Uint8Array<...>): boolean; signer: { ...; }; } | undefined'.
Type 'Account' is missing the following properties from type '{ readonly publicKey: Uint8Array; address: string; prefixedAddress(prefix?: number | undefined): string; sign(message: string | Uint8Array): Uint8Array<...>; verify(message: string | Uint8Array<...>, signature: string | Uint8Array<...>): boolean; signer: { ...; }; }': publicKey, prefixedAddress, verify

Going back to the history of the code, I noticed the solution is simply reverting the code of the last commit.
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 this pull request may close these issues.

1 participant