From 981905ad8511cea706fc77d0c133bb1962f76927 Mon Sep 17 00:00:00 2001 From: Joe Polny <50534337+joe-p@users.noreply.github.com> Date: Thu, 25 Apr 2024 15:57:36 -0400 Subject: [PATCH] fix: allow either boolean value for nonParticipation offline keyregs (#866) --- examples/participation.ts | 1 - src/makeTxn.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/participation.ts b/examples/participation.ts index 4cb3da657..f5fd2ae61 100644 --- a/examples/participation.ts +++ b/examples/participation.ts @@ -49,7 +49,6 @@ async function main() { { from: addr, suggestedParams, - nonParticipation: true, } ); console.log(offlineKeyReg.get_obj_for_encoding()); diff --git a/src/makeTxn.ts b/src/makeTxn.ts index 9814989f9..4dd08ecf1 100644 --- a/src/makeTxn.ts +++ b/src/makeTxn.ts @@ -135,7 +135,7 @@ export function makeKeyRegistrationTxnWithSuggestedParams( voteKeyDilution: undefined, suggestedParams: MustHaveSuggestedParams['suggestedParams'], rekeyTo?: KeyRegistrationTxn['reKeyTo'], - nonParticipation?: true, + nonParticipation?: boolean, stateProofKey?: undefined ): txnBuilder.Transaction; export function makeKeyRegistrationTxnWithSuggestedParams(