mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 17:03:46 +00:00
core: receipt status is wrong
This commit is contained in:
parent
eea996e4e1
commit
c50faa1845
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 {
|
||||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue