Skip to content

Commit 052355f

Browse files
cmd/evm/internal/t8ntoo: tiny bugfix for difficulty field (#28245)
1 parent 95b0555 commit 052355f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/evm/internal/t8ntool/block.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func (i *bbInput) ToBlock() *types.Block {
158158
if i.Header.Nonce != nil {
159159
header.Nonce = *i.Header.Nonce
160160
}
161-
if header.Difficulty != nil {
161+
if i.Header.Difficulty != nil {
162162
header.Difficulty = i.Header.Difficulty
163163
}
164164
return types.NewBlockWithHeader(header).WithBody(i.Txs, i.Ommers).WithWithdrawals(i.Withdrawals)

0 commit comments

Comments
 (0)