Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos in comment #1216

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -111,7 +111,7 @@ func (c ExecutionEthashConsensus) DifficultyPerBlock() *big.Int {
}

func (c ExecutionEthashConsensus) SecondsPerBlock() uint64 {
// It is really hard to approxmate this value
// It is really hard to approximate this value
return 10
}

2 changes: 1 addition & 1 deletion simulators/eth2/common/utils/beacon_cache.go
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ func (c BeaconCache) GetBlockStateByRoot(
stateRoot := s.Root()
if !bytes.Equal(blockStateRoot[:], stateRoot[:]) {
return BeaconBlockState{}, fmt.Errorf(
"state root missmatch while fetching state",
"state root mismatch while fetching state",
)
}
both := BeaconBlockState{
2 changes: 1 addition & 1 deletion simulators/eth2/withdrawals/helper.go
Original file line number Diff line number Diff line change
@@ -114,7 +114,7 @@ func (c BeaconCache) GetBlockStateByRoot(
stateRoot := s.Root()
if !bytes.Equal(blockStateRoot[:], stateRoot[:]) {
return BeaconBlockState{}, fmt.Errorf(
"state root missmatch while fetching state",
"state root mismatch while fetching state",
)
}
both := BeaconBlockState{
2 changes: 1 addition & 1 deletion simulators/ethereum/engine/config/cancun/genesis.go
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ func ConfigGenesis(genesis *core.Genesis, forkTimestamp uint64) error {
return nil
}

// Configure specific test genesis accounts related to Cancun funtionality.
// Configure specific test genesis accounts related to Cancun functionality.
func ConfigTestAccounts(genesis *core.Genesis) error {
// Add accounts that use the DATAHASH opcode
datahashCode := []byte{
2 changes: 1 addition & 1 deletion simulators/ethereum/engine/helper/tx.go
Original file line number Diff line number Diff line change
@@ -214,7 +214,7 @@ func CustomizeTransaction(baseTransaction *types.Transaction, sender SenderAccou
if customData.Signature == nil {
// If a custom invalid signature was not specified, simply sign the transaction again
if customData.ChainID == nil {
// Use the default value if an invaild chain ID was not specified
// Use the default value if an invalid chain ID was not specified
customData.ChainID = baseTransaction.ChainId()
}
signer := types.NewCancunSigner(customData.ChainID)
2 changes: 1 addition & 1 deletion simulators/ethereum/engine/suites/cancun/steps.go
Original file line number Diff line number Diff line change
@@ -528,7 +528,7 @@ func (step NewPayloads) Execute(t *TestContext) error {
},
OnNewPayloadBroadcast: func() {
if step.NewPayloadCustomizer != nil {
// Send a test NewPayload directive with either a modified payload or modifed versioned hashes
// Send a test NewPayload directive with either a modified payload or modified versioned hashes
var (
payload = &t.CLMock.LatestPayloadBuilt
r *test.NewPayloadResponseExpectObject