Skip to content

refactor(sdk-core): change BaseTransaction.id return type to string |…#8111

Closed
lcovar wants to merge 1 commit intomasterfrom
BTC-0-base-transaction-id-fix
Closed

refactor(sdk-core): change BaseTransaction.id return type to string |…#8111
lcovar wants to merge 1 commit intomasterfrom
BTC-0-base-transaction-id-fix

Conversation

@lcovar
Copy link
Contributor

@lcovar lcovar commented Feb 11, 2026

Update BaseTransaction.id getter return type from string to
string | undefined to accurately reflect that transaction IDs
may not be available before signing/serialization.

Propagate the type change to all downstream coin modules:

  • sdk-coin-ada: update explainTransaction return type and test assertions
  • sdk-coin-apt: update TxData.id type
  • sdk-coin-dot: update test assertions
  • sdk-coin-flrp: update test assertions
  • sdk-coin-near: update test assertions
  • sdk-coin-sui: update Transaction.id getter return type
  • sdk-coin-ton: update TxData.id and local ITransactionExplanation.id types
  • sdk-coin-vet: update VetTransactionData.id type and test assertions

TICKET: BTC-3027

BREAKING CHANGE: return type of get id is being updated to reflect _id which is string | undefined

@lcovar lcovar force-pushed the BTC-0-base-transaction-id-fix branch 4 times, most recently from 462e65a to ce05dcf Compare February 11, 2026 22:54
@lcovar lcovar marked this pull request as ready for review February 12, 2026 06:42
@lcovar lcovar requested review from a team as code owners February 12, 2026 06:42
Copy link
Contributor

@dpkjnr dpkjnr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like a breaking change, please add a breaking change footer in the commit message

… undefined

Update BaseTransaction.id getter return type from string to
string | undefined to accurately reflect that transaction IDs
may not be available before signing/serialization.

Propagate the type change to all downstream coin modules:
- sdk-coin-ada: update explainTransaction return type and test assertions
- sdk-coin-apt: update TxData.id type
- sdk-coin-dot: update test assertions
- sdk-coin-flrp: update test assertions
- sdk-coin-near: update test assertions
- sdk-coin-sui: update Transaction<T>.id getter return type
- sdk-coin-ton: update TxData.id and local ITransactionExplanation.id types
- sdk-coin-vet: update VetTransactionData.id type and test assertions

TICKET: BTC-3027

BREAKING CHANGE: return type of get id is being updated to reflect _id which is string | undefined
@lcovar lcovar force-pushed the BTC-0-base-transaction-id-fix branch from ce05dcf to ba63378 Compare February 12, 2026 20:19
@lcovar lcovar requested a review from dpkjnr February 12, 2026 21:22
@lcovar
Copy link
Contributor Author

lcovar commented Feb 13, 2026

not worth it

@lcovar lcovar closed this Feb 13, 2026
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.

2 participants