Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update the actor codes versions #1193

Merged
merged 2 commits into from
May 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions commands/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ import (

"github.com/filecoin-project/lily/lens/lily"
"github.com/filecoin-project/lily/lens/util"
lotusactors "github.com/filecoin-project/lotus/chain/actors"
)

var actorVersions = []int{0, 2, 3, 4, 5, 6, 7, 8, 9, 10}
var actorVersions = lotusactors.Versions

var ChainCmd = &cli.Command{
Name: "chain",
Expand Down Expand Up @@ -80,7 +81,7 @@ var ChainActorCodesCmd = &cli.Command{
Usage: "Print actor codes and names.",
Flags: []cli.Flag{configFlag, storageFlag},
Action: func(cctx *cli.Context) error {
manifests := manifest.GetBuiltinActorsKeys(actorstypes.Version10)
manifests := manifest.GetBuiltinActorsKeys(actorstypes.Version(actorVersions[len(actorVersions)-1]))
t := table.NewWriter()
t.AppendHeader(table.Row{"name", "family", "code"})

Expand Down Expand Up @@ -151,7 +152,7 @@ var ChainActorMethodsCmd = &cli.Command{
Usage: "Print actor method numbers and their human readable names.",
Flags: []cli.Flag{configFlag, storageFlag},
Action: func(cctx *cli.Context) error {
manifests := manifest.GetBuiltinActorsKeys(actorstypes.Version10)
manifests := manifest.GetBuiltinActorsKeys(actorstypes.Version(actorVersions[len(actorVersions)-1]))
t := table.NewWriter()
t.AppendHeader(table.Row{"actor_family", "method_name", "method_number"})

Expand Down