No overload matches this call.
Overload 1 of 2, '(from: string, note: Uint8Array | undefined, voteKey: string | Uint8Array, selectionKey: string | Uint8Array, voteFirst: number, voteLast: number, voteKeyDilution: number, suggestedParams: SuggestedParams, rekeyTo?: string | undefined, nonParticipation?: false | undefined, stateProofKey?: string | ... 1 more ... | undefined): Transaction', gave the following error.
Argument of type 'undefined' is not assignable to parameter of type 'string | Uint8Array'.
Overload 2 of 2, '(from: string, note: Uint8Array | undefined, voteKey: undefined, selectionKey: undefined, voteFirst: undefined, voteLast: undefined, voteKeyDilution: undefined, suggestedParams: SuggestedParams, rekeyTo?: string | undefined, nonParticipation?: true | undefined, stateProofKey?: undefined): Transaction', gave the following error.
Argument of type 'false' is not assignable to parameter of type 'true'.ts(2769)
makeTxn.ts(141, 17): The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.
Fixes a bug in the typing that would make the user think they need to set nonParticipation to
true
.Also removed
nonParticipation: true
from the example file.Current behavior
New Behavior
No error displayed