@@ -210,7 +210,13 @@ export interface UpdateCredentialsSummary {
210210export interface FailedTransactionSummary {
211211 transactionType : TransactionKindString . Failed ;
212212 failedTransactionType ?: TransactionKindString ;
213- rejectReason : RejectReason ;
213+ /**
214+ * The reject reason for the failed transaction
215+ *
216+ * **Please note**, this can possibly be unknown if the SDK is not fully compatible with the Concordium
217+ * node queried, in which case `null` is returned.
218+ */
219+ rejectReason : Upward < RejectReason > ;
214220}
215221
216222/**
@@ -389,15 +395,15 @@ export const isSuccessTransaction = (
389395 *
390396 * @param {BlockItemSummary } summary - The block item summary to check.
391397 *
392- * @returns {RejectReason | undfined } Reject reason if `summary` is a rejected transaction. Otherwise returns undefined.
398+ * @returns {RejectReason | undefined } Reject reason if `summary` is a rejected transaction. Otherwise returns undefined.
393399 */
394- export function getTransactionRejectReason < T extends FailedTransactionSummary > ( summary : T ) : RejectReason ;
400+ export function getTransactionRejectReason < T extends FailedTransactionSummary > ( summary : T ) : Upward < RejectReason > ;
395401export function getTransactionRejectReason ( summary : AccountCreationSummary | UpdateSummary ) : undefined ;
396402export function getTransactionRejectReason (
397403 summary : Exclude < AccountTransactionSummary , FailedTransactionSummary >
398404) : undefined ;
399- export function getTransactionRejectReason ( summary : BlockItemSummary ) : RejectReason | undefined ;
400- export function getTransactionRejectReason ( summary : BlockItemSummary ) : RejectReason | undefined {
405+ export function getTransactionRejectReason ( summary : BlockItemSummary ) : Upward < RejectReason > | undefined ;
406+ export function getTransactionRejectReason ( summary : BlockItemSummary ) : Upward < RejectReason > | undefined {
401407 if ( ! isRejectTransaction ( summary ) ) {
402408 return undefined ;
403409 }
0 commit comments