From fbf5b1de150b1d27e76ccdccfc615a63093c0992 Mon Sep 17 00:00:00 2001 From: kane Date: Wed, 28 Nov 2018 03:59:14 -0500 Subject: [PATCH] core/type: change receipt status code --- core/types/receipt.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/types/receipt.go b/core/types/receipt.go index 3d1fc95aab..d66296c9a8 100644 --- a/core/types/receipt.go +++ b/core/types/receipt.go @@ -36,10 +36,10 @@ var ( const ( // ReceiptStatusFailed is the status code of a transaction if execution failed. - ReceiptStatusFailed = uint64(0) + ReceiptStatusFailed = uint64(1) // ReceiptStatusSuccessful is the status code of a transaction if execution succeeded. - ReceiptStatusSuccessful = uint64(1) + ReceiptStatusSuccessful = uint64(0) ) // Receipt represents the results of a transaction.