Handle error
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
46fd9d5e80
commit
ea92f5f1ff
@ -109,6 +109,9 @@ func (sm *StateManager) CallWithGas(ctx context.Context, msg *types.Message, pri
|
|||||||
}
|
}
|
||||||
|
|
||||||
state, _, err := sm.TipSetState(ctx, ts)
|
state, _, err := sm.TipSetState(ctx, ts)
|
||||||
|
if err != nil {
|
||||||
|
return nil, xerrors.Errorf("computing tipset state: %w", err)
|
||||||
|
}
|
||||||
|
|
||||||
r := store.NewChainRand(sm.cs, ts.Cids(), ts.Height())
|
r := store.NewChainRand(sm.cs, ts.Cids(), ts.Height())
|
||||||
|
|
||||||
|
@ -153,7 +153,6 @@ func (a *GasAPI) GasEstimateGasLimit(ctx context.Context, msgIn *types.Message,
|
|||||||
for _, m := range pending {
|
for _, m := range pending {
|
||||||
priorMsgs = append(priorMsgs, m)
|
priorMsgs = append(priorMsgs, m)
|
||||||
}
|
}
|
||||||
log.Warnf("added %d prior msgs", len(priorMsgs))
|
|
||||||
|
|
||||||
res, err := a.Stmgr.CallWithGas(ctx, &msg, priorMsgs, ts)
|
res, err := a.Stmgr.CallWithGas(ctx, &msg, priorMsgs, ts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user