mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
Merge c50faa1845 into eea996e4e1
This commit is contained in:
commit
91df1f2976
1 changed files with 2 additions and 2 deletions
|
|
@ -86,9 +86,9 @@ type receiptStorageRLP struct {
|
||||||
func NewReceipt(root []byte, failed bool, cumulativeGasUsed *big.Int) *Receipt {
|
func NewReceipt(root []byte, failed bool, cumulativeGasUsed *big.Int) *Receipt {
|
||||||
r := &Receipt{PostState: common.CopyBytes(root), CumulativeGasUsed: new(big.Int).Set(cumulativeGasUsed)}
|
r := &Receipt{PostState: common.CopyBytes(root), CumulativeGasUsed: new(big.Int).Set(cumulativeGasUsed)}
|
||||||
if failed {
|
if failed {
|
||||||
r.Status = ReceiptStatusFailed
|
|
||||||
} else {
|
|
||||||
r.Status = ReceiptStatusSuccessful
|
r.Status = ReceiptStatusSuccessful
|
||||||
|
} else {
|
||||||
|
r.Status = ReceiptStatusFailed
|
||||||
}
|
}
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue