Skip to content

Commit

Permalink
fix method map (#4666)
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode authored Jan 4, 2022
1 parent 8de15cd commit e72be2e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pkg/chain/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,19 @@ import (
blockFormat "github.com/ipfs/go-block-format"
"github.com/ipfs/go-cid"

/* inline-gen template
{{range .actorVersions}}
exported{{.}} "github.com/filecoin-project/specs-actors{{import .}}actors/builtin/exported"{{end}}
/* inline-gen start */

exported0 "github.com/filecoin-project/specs-actors/actors/builtin/exported"
exported2 "github.com/filecoin-project/specs-actors/v2/actors/builtin/exported"
exported3 "github.com/filecoin-project/specs-actors/v3/actors/builtin/exported"
exported4 "github.com/filecoin-project/specs-actors/v4/actors/builtin/exported"
exported5 "github.com/filecoin-project/specs-actors/v5/actors/builtin/exported"
exported6 "github.com/filecoin-project/specs-actors/v6/actors/builtin/exported"
exported7 "github.com/filecoin-project/specs-actors/v7/actors/builtin/exported"
/* inline-gen end */

"github.com/filecoin-project/venus/venus-shared/actors/builtin"
)
Expand All @@ -35,12 +42,21 @@ var MethodsMap = map[cid.Cid]map[abi.MethodNum]MethodMeta{}
func init() {
// TODO: combine with the runtime actor registry.
var actors []rt.VMActor

/* inline-gen template
{{range .actorVersions}}
actors = append(actors, exported{{.}}.BuiltinActors()...){{end}}
/* inline-gen start */

actors = append(actors, exported0.BuiltinActors()...)
actors = append(actors, exported2.BuiltinActors()...)
actors = append(actors, exported3.BuiltinActors()...)
actors = append(actors, exported4.BuiltinActors()...)
actors = append(actors, exported5.BuiltinActors()...)
actors = append(actors, exported6.BuiltinActors()...)
actors = append(actors, exported7.BuiltinActors()...)
/* inline-gen end */

for _, actor := range actors {
exports := actor.Exports()
methods := make(map[abi.MethodNum]MethodMeta, len(exports))
Expand Down

0 comments on commit e72be2e

Please sign in to comment.