Skip to content

Commit 88ba695

Browse files
simlecodeta0li
authored andcommitted
fix method map (#4666)
1 parent 9105419 commit 88ba695

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

pkg/chain/utils.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,19 @@ import (
1313
blockFormat "github.com/ipfs/go-block-format"
1414
"github.com/ipfs/go-cid"
1515

16+
/* inline-gen template
17+
{{range .actorVersions}}
18+
exported{{.}} "github.com/filecoin-project/specs-actors{{import .}}actors/builtin/exported"{{end}}
19+
/* inline-gen start */
20+
1621
exported0 "github.com/filecoin-project/specs-actors/actors/builtin/exported"
1722
exported2 "github.com/filecoin-project/specs-actors/v2/actors/builtin/exported"
1823
exported3 "github.com/filecoin-project/specs-actors/v3/actors/builtin/exported"
1924
exported4 "github.com/filecoin-project/specs-actors/v4/actors/builtin/exported"
2025
exported5 "github.com/filecoin-project/specs-actors/v5/actors/builtin/exported"
2126
exported6 "github.com/filecoin-project/specs-actors/v6/actors/builtin/exported"
27+
exported7 "github.com/filecoin-project/specs-actors/v7/actors/builtin/exported"
28+
/* inline-gen end */
2229

2330
"github.com/filecoin-project/venus/venus-shared/actors/builtin"
2431
)
@@ -35,12 +42,21 @@ var MethodsMap = map[cid.Cid]map[abi.MethodNum]MethodMeta{}
3542
func init() {
3643
// TODO: combine with the runtime actor registry.
3744
var actors []rt.VMActor
45+
46+
/* inline-gen template
47+
{{range .actorVersions}}
48+
actors = append(actors, exported{{.}}.BuiltinActors()...){{end}}
49+
/* inline-gen start */
50+
3851
actors = append(actors, exported0.BuiltinActors()...)
3952
actors = append(actors, exported2.BuiltinActors()...)
4053
actors = append(actors, exported3.BuiltinActors()...)
4154
actors = append(actors, exported4.BuiltinActors()...)
4255
actors = append(actors, exported5.BuiltinActors()...)
4356
actors = append(actors, exported6.BuiltinActors()...)
57+
actors = append(actors, exported7.BuiltinActors()...)
58+
/* inline-gen end */
59+
4460
for _, actor := range actors {
4561
exports := actor.Exports()
4662
methods := make(map[abi.MethodNum]MethodMeta, len(exports))

0 commit comments

Comments
 (0)