Skip to content

Commit

Permalink
fix: allow either boolean value for nonParticipation offline keyregs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-p authored Apr 25, 2024
1 parent a4eccfb commit 981905a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion examples/participation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ async function main() {
{
from: addr,
suggestedParams,
nonParticipation: true,
}
);
console.log(offlineKeyReg.get_obj_for_encoding());
Expand Down
2 changes: 1 addition & 1 deletion src/makeTxn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export function makeKeyRegistrationTxnWithSuggestedParams(
voteKeyDilution: undefined,
suggestedParams: MustHaveSuggestedParams<KeyRegistrationTxn>['suggestedParams'],
rekeyTo?: KeyRegistrationTxn['reKeyTo'],
nonParticipation?: true,
nonParticipation?: boolean,
stateProofKey?: undefined
): txnBuilder.Transaction;
export function makeKeyRegistrationTxnWithSuggestedParams(
Expand Down

0 comments on commit 981905a

Please sign in to comment.