Skip to content

Commit fbf57d5

Browse files
rjl493456442karalabe
authored andcommitted
core/types: convert status type from uint to uint64 (#16784)
1 parent 6ce21a4 commit fbf57d5

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

core/types/gen_receipt_json.go

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/types/receipt.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ var (
3636

3737
const (
3838
// ReceiptStatusFailed is the status code of a transaction if execution failed.
39-
ReceiptStatusFailed = uint(0)
39+
ReceiptStatusFailed = uint64(0)
4040

4141
// ReceiptStatusSuccessful is the status code of a transaction if execution succeeded.
42-
ReceiptStatusSuccessful = uint(1)
42+
ReceiptStatusSuccessful = uint64(1)
4343
)
4444

4545
// Receipt represents the results of a transaction.
4646
type Receipt struct {
4747
// Consensus fields
4848
PostState []byte `json:"root"`
49-
Status uint `json:"status"`
49+
Status uint64 `json:"status"`
5050
CumulativeGasUsed uint64 `json:"cumulativeGasUsed" gencodec:"required"`
5151
Bloom Bloom `json:"logsBloom" gencodec:"required"`
5252
Logs []*Log `json:"logs" gencodec:"required"`
@@ -59,7 +59,7 @@ type Receipt struct {
5959

6060
type receiptMarshaling struct {
6161
PostState hexutil.Bytes
62-
Status hexutil.Uint
62+
Status hexutil.Uint64
6363
CumulativeGasUsed hexutil.Uint64
6464
GasUsed hexutil.Uint64
6565
}

0 commit comments

Comments
 (0)