Skip to content

Commit

Permalink
Add MinerKey
Browse files Browse the repository at this point in the history
  • Loading branch information
vinhloc30796 authored and frrist committed Jan 16, 2023
1 parent 42a847c commit 8a2e1de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var ChainActorCodesCmd = &cli.Command{
Name: "actor-codes",
Usage: "Print actor codes and names",
Action: func(cctx *cli.Context) error {
for _, a := range []string{actors.AccountKey, actors.CronKey, actors.DatacapKey, actors.InitKey, actors.MarketKey, actors.MultisigKey, actors.PaychKey, actors.PowerKey, actors.RewardKey, actors.SystemKey, actors.VerifregKey} {
for _, a := range []string{actors.AccountKey, actors.CronKey, actors.DatacapKey, actors.InitKey, actors.MarketKey, actors.MinerKey, actors.MultisigKey, actors.PaychKey, actors.PowerKey, actors.RewardKey, actors.SystemKey, actors.VerifregKey} {
av := make(map[actors.Version]cid.Cid)
for _, v := range []int{0, 2, 3, 4, 5, 6, 7, 8, 9} {
code, ok := actors.GetActorCodeID(actors.Version(v), a)
Expand Down Expand Up @@ -749,6 +749,8 @@ func printActorMethods(actorKey string) error {
correspondingMethods = builtin.MethodsDatacap
case actors.MarketKey:
correspondingMethods = builtin.MethodsMarket
case actors.MinerKey:
correspondingMethods = builtin.MethodsMiner
case actors.InitKey:
correspondingMethods = builtin.MethodsInit
case actors.MultisigKey:
Expand Down

0 comments on commit 8a2e1de

Please sign in to comment.