diff --git a/core/types/receipt.go b/core/types/receipt.go index bc3c996b4f..19d469c8e0 100644 --- a/core/types/receipt.go +++ b/core/types/receipt.go @@ -86,9 +86,9 @@ type receiptStorageRLP struct { func NewReceipt(root []byte, failed bool, cumulativeGasUsed *big.Int) *Receipt { r := &Receipt{PostState: common.CopyBytes(root), CumulativeGasUsed: new(big.Int).Set(cumulativeGasUsed)} if failed { - r.Status = ReceiptStatusFailed - } else { r.Status = ReceiptStatusSuccessful + } else { + r.Status = ReceiptStatusFailed } return r }