Skip to content

Commit

Permalink
lint #6371
Browse files Browse the repository at this point in the history
  • Loading branch information
beeleelee committed Jul 5, 2024
1 parent 0fa19fc commit 83e8a88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/submodule/f3/f3_submodule.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type F3Submodule struct {
F3 *vf3.F3
}

func NewF3Submodule(ctx context.Context, repo repo.Repo, chain *chain.ChainSubmodule, network *network.NetworkSubmodule, walletApi v1api.IWallet) (*F3Submodule, error) {
func NewF3Submodule(ctx context.Context, repo repo.Repo, chain *chain.ChainSubmodule, network *network.NetworkSubmodule, walletAPI v1api.IWallet) (*F3Submodule, error) {
netconf := repo.Config().NetworkParams
if !netconf.F3Enabled {
return &F3Submodule{
Expand All @@ -33,7 +33,7 @@ func NewF3Submodule(ctx context.Context, repo repo.Repo, chain *chain.ChainSubmo
ChainStore: chain.ChainReader,
StateManager: chain.Stmgr,
Datastore: repo.ChainDatastore(),
Wallet: walletApi,
Wallet: walletAPI,
})
if err != nil {
return nil, err
Expand Down
6 changes: 3 additions & 3 deletions pkg/vf3/ec.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ func (ec *ecWrapper) GetParent(ctx context.Context, tsF3 f3.TipSet) (f3.TipSet,
return nil, xerrors.Errorf("getting tipset by key for get parent: %w", err)
}
}
parentTs, err := ec.ChainStore.GetTipSet(ctx, ts.Parents())
parentTS, err := ec.ChainStore.GetTipSet(ctx, ts.Parents())
if err != nil {
return nil, xerrors.Errorf("getting parent tipset: %w", err)
}
return wrapTS(parentTs), nil
return wrapTS(parentTS), nil
}

func (ec *ecWrapper) GetPowerTable(ctx context.Context, tskF3 gpbft.TipSetKey) (gpbft.PowerEntries, error) {
Expand Down Expand Up @@ -173,7 +173,7 @@ func (ec *ecWrapper) GetPowerTable(ctx context.Context, tskF3 gpbft.TipSetKey) (
return xerrors.Errorf("(get sset) failed to load miner actor: %w", err)
}
if !found {
return xerrors.Errorf("(get sset) failed to find miner actor by addres: %s", minerAddr)
return xerrors.Errorf("(get sset) failed to find miner actor by address: %s", minerAddr)
}
mstate, err := miner.Load(ec.ChainStore.Store(ctx), act)
if err != nil {
Expand Down

0 comments on commit 83e8a88

Please sign in to comment.