Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
chore: fix typos in comment (backport #1325) (#1327)
Browse files Browse the repository at this point in the history
This is an automatic backport of pull request #1325 done by
[Mergify](https://mergify.com).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the
[documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- `@Mergifyio refresh` will re-evaluate the rules
- `@Mergifyio rebase` will rebase this PR on its base branch
- `@Mergifyio update` will merge the base branch into this PR
- `@Mergifyio backport <destination>` will backport this PR on
`<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you
can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

Co-authored-by: Taeguk Kwon <[email protected]>
  • Loading branch information
mergify[bot] and taeguk authored Nov 23, 2023
1 parent 03f159f commit cb9f281
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cosmos/runtime/chain/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (wbc *WrappedBlockchain) WriteGenesisState(
return wbc.WriteGenesisBlock(genState.ToBlock())
}

// InsertBlockWithoutSetHead inserts a block into the blockchain and sets
// InsertBlockAndSetHead inserts a block into the blockchain and sets
// it as the head. It uses the provided context as the application context.
func (wbc *WrappedBlockchain) InsertBlockAndSetHead(
ctx context.Context, block *types.Block,
Expand Down
5 changes: 2 additions & 3 deletions cosmos/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ type Polaris struct {
logger log.Logger
}

// ProvidePolarisRuntime creates a new Polaris runtime from the provided
// dependencies.
// New creates a new Polaris runtime from the provided dependencies.
func New(
cfg *eth.Config,
logger log.Logger,
Expand Down Expand Up @@ -152,7 +151,7 @@ func (p *Polaris) SetupServices(clientCtx client.Context) error {
return p.StartServices()
}

// RegisterServices is a function that allows for the application to register lifecycles with
// RegisterLifecycles is a function that allows for the application to register lifecycles with
// the evm networking stack. It takes a client context and a slice of node.Lifecycle
// as arguments.
func (p *Polaris) RegisterLifecycles(lcs []node.Lifecycle) {
Expand Down
4 changes: 2 additions & 2 deletions cosmos/runtime/txpool/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ type Mempool struct {
handler Lifecycle
}

// NewMempool creates a new Mempool.
// New creates a new Mempool.
func New(chain core.ChainReader, txpool eth.TxPool) *Mempool {
return &Mempool{
txpool: txpool,
chain: chain,
}
}

// Init intializes the Mempool (notably the TxHandler).
// Init initializes the Mempool (notably the TxHandler).
func (m *Mempool) Init(
logger log.Logger,
txBroadcaster TxBroadcaster,
Expand Down

0 comments on commit cb9f281

Please sign in to comment.