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

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yosuzzy committed Apr 18, 2024
1 parent a5b91d0 commit d79f170
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cosmos/x/evm/plugins/state/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ func NewSPFactory(
}
}

// NewPluginFromContext creates a new Plugin instance using the current SPFactory's
// configuration and the provided context.
// NewPluginWithMode creates a new StatePlugin instance using the provided context.
// It initializes the plugin with the current SPFactory's account keeper, store key,
// query function, and precompile log factory, then resets the plugin's context to the
// one provided.
func (spf *SPFactory) NewPluginWithMode(mode state.Mode) core.StatePlugin {
p := NewPlugin(spf.ak, spf.storeKey, spf.qfn, spf.plf)
switch mode {
Expand All @@ -86,10 +88,8 @@ func (spf *SPFactory) NewPluginWithMode(mode state.Mode) core.StatePlugin {
return p
}

// NewPluginWithContext creates a new StatePlugin instance using the provided context.
// It initializes the plugin with the current SPFactory's account keeper, store key,
// query function, and precompile log factory, then resets the plugin's context to the
// one provided.
// NewPluginFromContext creates a new Plugin instance using the current SPFactory's
// configuration and the provided context.
func (spf *SPFactory) NewPluginFromContext(ctx context.Context) core.StatePlugin {
p := NewPlugin(spf.ak, spf.storeKey, spf.qfn, spf.plf)
p.Reset(ctx)
Expand Down Expand Up @@ -121,7 +121,7 @@ func (spf *SPFactory) SetGenesisContext(ctx context.Context) {
spf.genesisContext = sdk.UnwrapSDKContext(ctx)
}

// SetMiningContext updates the SPFactory's minerBuildContext to the provided context.
// SetLatestMiningContext updates the SPFactory's minerBuildContext to the provided context.
func (spf *SPFactory) SetLatestMiningContext(ctx context.Context) {
spf.minerBuildContext = sdk.UnwrapSDKContext(ctx)
}
Expand Down

0 comments on commit d79f170

Please sign in to comment.