Centralize some params in builtin

This commit is contained in:
Aayush Rajasekaran
2020-09-29 02:25:43 -04:00
parent dd65e57d4b
commit be9d23b329
13 changed files with 63 additions and 43 deletions
+3 -1
View File
@@ -6,6 +6,8 @@ import (
"math/rand"
"sort"
"github.com/filecoin-project/lotus/chain/actors/builtin"
"go.uber.org/fx"
"golang.org/x/xerrors"
@@ -182,7 +184,7 @@ func (a *GasAPI) GasEstimateGasLimit(ctx context.Context, msgIn *types.Message,
return res.MsgRct.GasUsed, nil
}
if !act.IsPaymentChannelActor() {
if !builtin.IsPaymentChannelActor(act.Code) {
return res.MsgRct.GasUsed, nil
}
if msgIn.Method != builtin0.MethodsPaych.Collect {