Skip to content

Commit 339a4cf

Browse files
authored
core: fix typos (#28238)
1 parent 07dec7a commit 339a4cf

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

core/types/hashing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ type DerivableList interface {
9595
func encodeForDerive(list DerivableList, i int, buf *bytes.Buffer) []byte {
9696
buf.Reset()
9797
list.EncodeIndex(i, buf)
98-
// It's really unfortunate that we need to do perform this copy.
98+
// It's really unfortunate that we need to perform this copy.
9999
// StackTrie holds onto the values until Hash is called, so the values
100100
// written to it must not alias.
101101
return common.CopyBytes(buf.Bytes())

core/types/state_account.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func SlimAccountRLP(account StateAccount) []byte {
8787
return data
8888
}
8989

90-
// FullAccount decodes the data on the 'slim RLP' format and return
90+
// FullAccount decodes the data on the 'slim RLP' format and returns
9191
// the consensus format account.
9292
func FullAccount(data []byte) (*StateAccount, error) {
9393
var slim SlimAccount

core/types/transaction.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func (tx *Transaction) DecodeRLP(s *rlp.Stream) error {
168168
}
169169

170170
// UnmarshalBinary decodes the canonical encoding of transactions.
171-
// It supports legacy RLP transactions and EIP2718 typed transactions.
171+
// It supports legacy RLP transactions and EIP-2718 typed transactions.
172172
func (tx *Transaction) UnmarshalBinary(b []byte) error {
173173
if len(b) > 0 && b[0] > 0x7f {
174174
// It's a legacy transaction.
@@ -180,7 +180,7 @@ func (tx *Transaction) UnmarshalBinary(b []byte) error {
180180
tx.setDecoded(&data, uint64(len(b)))
181181
return nil
182182
}
183-
// It's an EIP2718 typed transaction envelope.
183+
// It's an EIP-2718 typed transaction envelope.
184184
inner, err := tx.decodeTyped(b)
185185
if err != nil {
186186
return err
@@ -395,7 +395,7 @@ func (tx *Transaction) BlobGasFeeCap() *big.Int {
395395
return nil
396396
}
397397

398-
// BlobHashes returns the hases of the blob commitments for blob transactions, nil otherwise.
398+
// BlobHashes returns the hashes of the blob commitments for blob transactions, nil otherwise.
399399
func (tx *Transaction) BlobHashes() []common.Hash {
400400
if blobtx, ok := tx.inner.(*BlobTx); ok {
401401
return blobtx.BlobHashes

core/types/transaction_signing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func MakeSigner(config *params.ChainConfig, blockNumber *big.Int, blockTime uint
5757
}
5858

5959
// LatestSigner returns the 'most permissive' Signer available for the given chain
60-
// configuration. Specifically, this enables support of all types of transacrions
60+
// configuration. Specifically, this enables support of all types of transactions
6161
// when their respective forks are scheduled to occur at any block number (or time)
6262
// in the chain config.
6363
//

0 commit comments

Comments
 (0)