From 4e695c46b896c345c8871479b8b030d0d68e80c6 Mon Sep 17 00:00:00 2001 From: Nikolay Eskov Date: Thu, 3 Oct 2024 03:38:43 +0300 Subject: [PATCH] Fix 'TransactionStatus' JSON value for failed status. --- pkg/proto/block_snapshot_test.go | 2 +- pkg/proto/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/proto/block_snapshot_test.go b/pkg/proto/block_snapshot_test.go index ebb45f7e8..84007a158 100644 --- a/pkg/proto/block_snapshot_test.go +++ b/pkg/proto/block_snapshot_test.go @@ -154,7 +154,7 @@ func Test_txSnapshotJSON_MarshalJSON_UnmarshalJSON(t *testing.T) { ] }, { - "applicationStatus": "failed", + "applicationStatus": "script_execution_failed", "balances": [ { "address": "3NA26AC1aLjj6uYnuoTahauhUPPPB3VBPUe", diff --git a/pkg/proto/types.go b/pkg/proto/types.go index 9965c51d5..dd8ac63fb 100644 --- a/pkg/proto/types.go +++ b/pkg/proto/types.go @@ -4495,7 +4495,7 @@ func (s TransactionStatus) IsNotSucceeded() bool { return s != TransactionSuccee const ( txStatusSucceededJSON = "\"succeeded\"" - txStatusFailedJSON = "\"failed\"" + txStatusFailedJSON = "\"script_execution_failed\"" txStatusElidedJSON = "\"elided\"" )