code: func NewReceipt(root []byte, failed bool, cumulativeGasUsed uint64) *Receipt {
  	r := &Receipt{PostState: common.CopyBytes(root), CumulativeGasUsed: cumulativeGasUsed}
  	if failed {
  		r.Status = ReceiptStatusFailed
  	} else {
  		r.Status = ReceiptStatusSuccessful
  	}
  	return r
  }
docs: // NewReceipt creates a barebone transaction receipt, copying the init fields.