actors: Remove addrass aliases

This commit is contained in:
Łukasz Magiera
2020-02-25 21:54:58 +01:00
parent cd10a3126b
commit ae634ef7df
30 changed files with 84 additions and 187 deletions
+1 -1
View File
@@ -618,7 +618,7 @@ var slashConsensusFault = &cli.Command{
})
msg := &types.Message{
To: actors.StoragePowerAddress,
To: builtin.StoragePowerActorAddr,
From: def,
Value: types.NewInt(0),
GasPrice: types.NewInt(1),
+2 -2
View File
@@ -106,7 +106,7 @@ var msigCreateCmd = &cli.Command{
// new actors are created by invoking 'exec' on the init actor with the constructor params
execParams := &init_.ExecParams{
CodeCID: actors.MultisigCodeCid,
CodeCID: builtin.MultisigActorCodeID,
ConstructorParams: enc,
}
@@ -117,7 +117,7 @@ var msigCreateCmd = &cli.Command{
// now we create the message to send this with
msg := types.Message{
To: actors.InitAddress,
To: builtin.InitActorAddr,
From: sendAddr,
Method: builtin.MethodsInit.Exec,
Params: enc,
+7 -7
View File
@@ -5,6 +5,7 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/filecoin-project/specs-actors/actors/builtin"
"reflect"
"strconv"
"strings"
@@ -20,7 +21,6 @@ import (
"golang.org/x/xerrors"
"github.com/filecoin-project/lotus/api"
actors "github.com/filecoin-project/lotus/chain/actors"
"github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/miner"
@@ -832,7 +832,7 @@ var stateCallCmd = &cli.Command{
&cli.StringFlag{
Name: "from",
Usage: "",
Value: actors.SystemAddress.String(),
Value: builtin.SystemActorAddr.String(),
},
&cli.StringFlag{
Name: "value",
@@ -973,15 +973,15 @@ func parseParamsForMethod(act cid.Cid, method uint64, args []string) ([]byte, er
var f interface{}
switch act {
case actors.StorageMarketCodeCid:
case builtin.StorageMarketActorCodeID:
f = market.Actor{}.Exports()[method]
case actors.StorageMinerCodeCid:
case builtin.StorageMinerActorCodeID:
f = miner2.Actor{}.Exports()[method]
case actors.StoragePowerCodeCid:
case builtin.StoragePowerActorCodeID:
f = power.Actor{}.Exports()[method]
case actors.MultisigCodeCid:
case builtin.MultisigActorCodeID:
f = samsig.Actor{}.Exports()[method]
case actors.PaymentChannelCodeCid:
case builtin.PaymentChannelActorCodeID:
f = paych.Actor{}.Exports()[method]
default:
return nil, fmt.Errorf("the lazy devs didnt add support for that actor to this call yet")