Skip to content

Commit

Permalink
eth, internal/ethapi: fix spelling of 'Ethereum' (ethereum#15164)
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestodeltoro authored and fjl committed Sep 20, 2017
1 parent b9ff44b commit 3c86563
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions eth/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type PublicEthereumAPI struct {
e *Ethereum
}

// NewPublicEthereumAPI creates a new Etheruem protocol API for full nodes.
// NewPublicEthereumAPI creates a new Ethereum protocol API for full nodes.
func NewPublicEthereumAPI(e *Ethereum) *PublicEthereumAPI {
return &PublicEthereumAPI{e}
}
Expand Down Expand Up @@ -205,7 +205,7 @@ func (api *PrivateMinerAPI) GetHashrate() uint64 {
return uint64(api.e.miner.HashRate())
}

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

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

// PrivateDebugAPI is the collection of Etheruem full node APIs exposed over
// PrivateDebugAPI is the collection of Ethereum full node APIs exposed over
// the private debugging endpoint.
type PrivateDebugAPI struct {
config *params.ChainConfig
Expand Down
2 changes: 1 addition & 1 deletion eth/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type ContractBackend struct {
}

// NewContractBackend creates a new native contract backend using an existing
// Etheruem object.
// Ethereum object.
func NewContractBackend(apiBackend ethapi.Backend) *ContractBackend {
return &ContractBackend{
eapi: ethapi.NewPublicEthereumAPI(apiBackend),
Expand Down
8 changes: 4 additions & 4 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type PublicEthereumAPI struct {
b Backend
}

// NewPublicEthereumAPI creates a new Etheruem protocol API.
// NewPublicEthereumAPI creates a new Ethereum protocol API.
func NewPublicEthereumAPI(b Backend) *PublicEthereumAPI {
return &PublicEthereumAPI{b}
}
Expand Down Expand Up @@ -448,7 +448,7 @@ type PublicBlockChainAPI struct {
b Backend
}

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

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

// PrivateDebugAPI is the collection of Etheruem APIs exposed over the private
// PrivateDebugAPI is the collection of Ethereum APIs exposed over the private
// debugging endpoint.
type PrivateDebugAPI struct {
b Backend
Expand Down

0 comments on commit 3c86563

Please sign in to comment.