diff --git a/storage-proto/proto/transaction_by_addr.proto b/storage-proto/proto/transaction_by_addr.proto index d0fa74a21..5748b0565 100644 --- a/storage-proto/proto/transaction_by_addr.proto +++ b/storage-proto/proto/transaction_by_addr.proto @@ -63,6 +63,7 @@ enum TransactionErrorType { PROGRAM_EXECUTION_TEMPORARILY_RESTRICTED = 35; UNBALANCED_TRANSACTION = 36; PROGRAM_CACHE_HIT_MAX_LIMIT = 37; + COMMIT_CANCELLED = 38; } message InstructionError { diff --git a/storage-proto/src/convert.rs b/storage-proto/src/convert.rs index 17c6f32f0..9387cb1b4 100644 --- a/storage-proto/src/convert.rs +++ b/storage-proto/src/convert.rs @@ -913,6 +913,7 @@ impl TryFrom for TransactionError { 34 => TransactionError::ResanitizationNeeded, 36 => TransactionError::UnbalancedTransaction, 37 => TransactionError::ProgramCacheHitMaxLimit, + 38 => TransactionError::CommitCancelled, _ => return Err("Invalid TransactionError"), }) } @@ -1032,7 +1033,7 @@ impl From for tx_by_addr::TransactionError { tx_by_addr::TransactionErrorType::UnbalancedTransaction } TransactionError::CommitCancelled => { - todo!() + tx_by_addr::TransactionErrorType::CommitCancelled } TransactionError::ProgramCacheHitMaxLimit => { tx_by_addr::TransactionErrorType::ProgramCacheHitMaxLimit