Skip to content

Commit

Permalink
cmd/evm/internal/t8ntoo: tiny bugfix for difficulty field (#28245)
Browse files Browse the repository at this point in the history
  • Loading branch information
tactical-retreat committed Oct 4, 2023
1 parent 95b0555 commit 052355f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/evm/internal/t8ntool/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 052355f

Please sign in to comment.