record ProgramFailedToComplete failed tx

This commit is contained in:
thloyi
2026-03-02 15:47:11 +08:00
parent 920c5ba25b
commit cd1d681621
3 changed files with 4 additions and 4 deletions

View File

@@ -354,7 +354,7 @@ func FromRpcTransactionWithMeta(tx rpc.TransactionWithMeta, blockTime *uint64, s
}
errDetail, ok := oErr[1].(string)
if ok {
if errDetail == "ComputationalBudgetExceeded" {
if errDetail == "ComputationalBudgetExceeded" || errDetail == "ProgramFailedToComplete" {
sTx.Meta.Err.Enum = ComputationalBudgetExceeded
} else {
sTx.Meta.Err.UnKnown = errDetail