cmd/evm/internal/t8ntoo: tiny bugfix for difficulty field (#28245)

pull/28254/head
tactical_retreat 1 year ago committed by GitHub
parent 95b0555c84
commit 052355f5e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/evm/internal/t8ntool/block.go

@ -158,7 +158,7 @@ func (i *bbInput) ToBlock() *types.Block {
if i.Header.Nonce != nil {
header.Nonce = *i.Header.Nonce
}
if header.Difficulty != nil {
if i.Header.Difficulty != nil {
header.Difficulty = i.Header.Difficulty
}
return types.NewBlockWithHeader(header).WithBody(i.Txs, i.Ommers).WithWithdrawals(i.Withdrawals)

Loading…
Cancel
Save