Skip to content

Commit

Permalink
chore(tx-construction): do not use conway certs before hardfork
Browse files Browse the repository at this point in the history
  • Loading branch information
mirceahasegan committed May 7, 2024
1 parent d257c1d commit 9dae494
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/tx-construction/src/tx-builder/TxBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,8 @@ export class GenericTxBuilder implements TxBuilder {
this.#logger.debug(`De-registering ${availableRewardAccounts.length} stake keys`);
for (const rewardAccount of availableRewardAccounts) {
if (rewardAccount.credentialStatus === Cardano.StakeCredentialStatus.Registered) {
certificates.push(Cardano.createStakeDeregistrationCert(rewardAccount.address, rewardAccount.deposit));
// TODO: re-enable conway stake deregistration cert, after the conway hardfork
certificates.push(Cardano.createStakeDeregistrationCert(rewardAccount.address /* , rewardAccount.deposit*/));
}
}
this.partialTxBody = { ...this.partialTxBody, certificates };
Expand Down

0 comments on commit 9dae494

Please sign in to comment.