Skip to content

Commit 3c86563

Browse files
ernestodeltorofjl
authored andcommitted
eth, internal/ethapi: fix spelling of 'Ethereum' (#15164)
1 parent b9ff44b commit 3c86563

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎eth/api.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type PublicEthereumAPI struct {
5151
e *Ethereum
5252
}
5353

54-
// NewPublicEthereumAPI creates a new Etheruem protocol API for full nodes.
54+
// NewPublicEthereumAPI creates a new Ethereum protocol API for full nodes.
5555
func NewPublicEthereumAPI(e *Ethereum) *PublicEthereumAPI {
5656
return &PublicEthereumAPI{e}
5757
}
@@ -205,7 +205,7 @@ func (api *PrivateMinerAPI) GetHashrate() uint64 {
205205
return uint64(api.e.miner.HashRate())
206206
}
207207

208-
// PrivateAdminAPI is the collection of Etheruem full node-related APIs
208+
// PrivateAdminAPI is the collection of Ethereum full node-related APIs
209209
// exposed over the private admin endpoint.
210210
type PrivateAdminAPI struct {
211211
eth *Ethereum
@@ -298,7 +298,7 @@ func (api *PrivateAdminAPI) ImportChain(file string) (bool, error) {
298298
return true, nil
299299
}
300300

301-
// PublicDebugAPI is the collection of Etheruem full node APIs exposed
301+
// PublicDebugAPI is the collection of Ethereum full node APIs exposed
302302
// over the public debugging endpoint.
303303
type PublicDebugAPI struct {
304304
eth *Ethereum
@@ -335,7 +335,7 @@ func (api *PublicDebugAPI) DumpBlock(blockNr rpc.BlockNumber) (state.Dump, error
335335
return stateDb.RawDump(), nil
336336
}
337337

338-
// PrivateDebugAPI is the collection of Etheruem full node APIs exposed over
338+
// PrivateDebugAPI is the collection of Ethereum full node APIs exposed over
339339
// the private debugging endpoint.
340340
type PrivateDebugAPI struct {
341341
config *params.ChainConfig

‎eth/bind.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type ContractBackend struct {
4343
}
4444

4545
// NewContractBackend creates a new native contract backend using an existing
46-
// Etheruem object.
46+
// Ethereum object.
4747
func NewContractBackend(apiBackend ethapi.Backend) *ContractBackend {
4848
return &ContractBackend{
4949
eapi: ethapi.NewPublicEthereumAPI(apiBackend),

‎internal/ethapi/api.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type PublicEthereumAPI struct {
5454
b Backend
5555
}
5656

57-
// NewPublicEthereumAPI creates a new Etheruem protocol API.
57+
// NewPublicEthereumAPI creates a new Ethereum protocol API.
5858
func NewPublicEthereumAPI(b Backend) *PublicEthereumAPI {
5959
return &PublicEthereumAPI{b}
6060
}
@@ -448,7 +448,7 @@ type PublicBlockChainAPI struct {
448448
b Backend
449449
}
450450

451-
// NewPublicBlockChainAPI creates a new Etheruem blockchain API.
451+
// NewPublicBlockChainAPI creates a new Ethereum blockchain API.
452452
func NewPublicBlockChainAPI(b Backend) *PublicBlockChainAPI {
453453
return &PublicBlockChainAPI{b}
454454
}
@@ -1275,7 +1275,7 @@ func (s *PublicTransactionPoolAPI) Resend(ctx context.Context, sendArgs SendTxAr
12751275
return common.Hash{}, fmt.Errorf("Transaction %#x not found", matchTx.Hash())
12761276
}
12771277

1278-
// PublicDebugAPI is the collection of Etheruem APIs exposed over the public
1278+
// PublicDebugAPI is the collection of Ethereum APIs exposed over the public
12791279
// debugging endpoint.
12801280
type PublicDebugAPI struct {
12811281
b Backend
@@ -1318,7 +1318,7 @@ func (api *PublicDebugAPI) SeedHash(ctx context.Context, number uint64) (string,
13181318
return fmt.Sprintf("0x%x", ethash.SeedHash(number)), nil
13191319
}
13201320

1321-
// PrivateDebugAPI is the collection of Etheruem APIs exposed over the private
1321+
// PrivateDebugAPI is the collection of Ethereum APIs exposed over the private
13221322
// debugging endpoint.
13231323
type PrivateDebugAPI struct {
13241324
b Backend

0 commit comments

Comments
 (0)