Skip to content

Commit

Permalink
fixed system contracts (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusKysel authored Apr 28, 2024
1 parent adc54a1 commit c1b2646
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions consensus/parlia/parlia.go
Original file line number Diff line number Diff line change
Expand Up @@ -1576,13 +1576,14 @@ func (p *Parlia) applyTransaction(from libcommon.Address, to libcommon.Address,
if err != nil {
return err
}
receipt := types.NewReceipt(false, *usedGas)
receipt.TxHash = expectedTx.Hash()
receipt.GasUsed = gasUsed
if err := ibs.FinalizeTx(p.chainConfig.Rules(header.Number.Uint64(), header.Time), state.NewNoopWriter()); err != nil {
return err
}
*usedGas += gasUsed
receipt := types.NewReceipt(false, *usedGas)
receipt.TxHash = expectedTx.Hash()
receipt.GasUsed = gasUsed

*txs = append(*txs, expectedTx)
// Set the receipt logs and create a bloom for filtering
receipt.Logs = ibs.GetLogs(expectedTx.Hash())
Expand Down

0 comments on commit c1b2646

Please sign in to comment.