From 3625ea0ed10cb4c3e2fc968adef6f33b31f9212d Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Mon, 28 Aug 2023 21:54:05 -0700 Subject: [PATCH] rename txSOROBAN_RESOURCE_LIMIT_EXCEEDED to more general txSOROBAN_INVALID --- Stellar-transaction.x | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Stellar-transaction.x b/Stellar-transaction.x index 2e149cd..2e3c22b 100644 --- a/Stellar-transaction.x +++ b/Stellar-transaction.x @@ -1949,14 +1949,12 @@ enum TransactionResultCode txBAD_AUTH_EXTRA = -10, // unused signatures attached to transaction txINTERNAL_ERROR = -11, // an unknown error occurred - txNOT_SUPPORTED = -12, // transaction type not supported - txFEE_BUMP_INNER_FAILED = -13, // fee bump inner transaction failed - txBAD_SPONSORSHIP = -14, // sponsorship not confirmed - txBAD_MIN_SEQ_AGE_OR_GAP = - -15, // minSeqAge or minSeqLedgerGap conditions not met - txMALFORMED = -16, // precondition is invalid - // declared Soroban resource usage exceeds the network limit - txSOROBAN_RESOURCE_LIMIT_EXCEEDED = -17 + txNOT_SUPPORTED = -12, // transaction type not supported + txFEE_BUMP_INNER_FAILED = -13, // fee bump inner transaction failed + txBAD_SPONSORSHIP = -14, // sponsorship not confirmed + txBAD_MIN_SEQ_AGE_OR_GAP = -15, // minSeqAge or minSeqLedgerGap conditions not met + txMALFORMED = -16, // precondition is invalid + txSOROBAN_INVALID = -17 // soroban-specific preconditions were not met }; // InnerTransactionResult must be binary compatible with TransactionResult @@ -1987,7 +1985,7 @@ struct InnerTransactionResult case txBAD_SPONSORSHIP: case txBAD_MIN_SEQ_AGE_OR_GAP: case txMALFORMED: - case txSOROBAN_RESOURCE_LIMIT_EXCEEDED: + case txSOROBAN_INVALID: void; } result; @@ -2034,7 +2032,7 @@ struct TransactionResult case txBAD_SPONSORSHIP: case txBAD_MIN_SEQ_AGE_OR_GAP: case txMALFORMED: - case txSOROBAN_RESOURCE_LIMIT_EXCEEDED: + case txSOROBAN_INVALID: void; } result;