Skip to content

Add ts-expect-error#1

Open
lnrocket wants to merge 1 commit intomasterfrom
ts-expect-error
Open

Add ts-expect-error#1
lnrocket wants to merge 1 commit intomasterfrom
ts-expect-error

Conversation

@lnrocket
Copy link
Owner

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