Skip to content

Commit

Permalink
feat: make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZexiao committed Aug 14, 2023
1 parent 20292df commit 626bdee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,13 +737,13 @@ var StateComputeStateCmd = &cmds.Command{
height := abi.ChainEpoch(h)
var ts *types.TipSet
var err error
chainApi := getEnv(env).ChainAPI
chainAPI := getEnv(env).ChainAPI
if tss := req.Options["tipset"].(string); tss != "" {
ts, err = ParseTipSetRef(ctx, chainApi, tss)
ts, err = ParseTipSetRef(ctx, chainAPI, tss)
} else if height > 0 {
ts, err = chainApi.ChainGetTipSetByHeight(ctx, height, types.EmptyTSK)
ts, err = chainAPI.ChainGetTipSetByHeight(ctx, height, types.EmptyTSK)
} else {
ts, err = chainApi.ChainHead(ctx)
ts, err = chainAPI.ChainHead(ctx)
}
if err != nil {
return err
Expand Down Expand Up @@ -779,7 +779,7 @@ var StateComputeStateCmd = &cmds.Command{

stout = &o
} else {
o, err := getEnv(env).ChainAPI.StateCompute(ctx, abi.ChainEpoch(height), msgs, ts.Key())
o, err := getEnv(env).ChainAPI.StateCompute(ctx, height, msgs, ts.Key())
if err != nil {
return err
}
Expand Down

0 comments on commit 626bdee

Please sign in to comment.