Skip to content

Commit 29901b5

Browse files
committed
refactor: responses to PR review
1 parent e5b3c5d commit 29901b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/types/backwards_compat.libevm_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
)
3232

3333
func newTx(nonce uint64) *Transaction { return NewTx(&LegacyTx{Nonce: nonce}) }
34-
func newHdr(hashLow byte) *Header { return &Header{ParentHash: common.Hash{hashLow}} }
34+
func newHdr(parentHashHigh byte) *Header { return &Header{ParentHash: common.Hash{parentHashHigh}} }
3535
func newWithdraw(idx uint64) *Withdrawal { return &Withdrawal{Index: idx} }
3636

3737
func blockBodyRLPTestInputs() []*Body {

core/types/rlp_payload.libevm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func (ExtraPayloads[HPtr, BPtr, SA]) cloneStateAccount(s *StateAccountExtra) *St
206206
// blockOrBody is an interface for use as a method argument as they can't
207207
// introduce new generic type parameters.
208208
type blockOrBody interface {
209-
isBlockOrBody() // noop purely for tagging
209+
isBlockOrBody() // noop to restrict type as [Header.extraPayload] otherwise matches
210210
extraPayload() *pseudo.Type
211211
}
212212

0 commit comments

Comments
 (0)