Merge pull request #7562 from filecoin-project/raulk/rename-makeActor
rename vm#make{=>Account}Actor().
This commit is contained in:
commit
bcfe7a76e8
@ -68,7 +68,7 @@ func TryCreateAccountActor(rt *Runtime, addr address.Address) (*types.Actor, add
|
|||||||
return nil, address.Undef, aerrors.Escalate(err, "unsupported network version")
|
return nil, address.Undef, aerrors.Escalate(err, "unsupported network version")
|
||||||
}
|
}
|
||||||
|
|
||||||
act, aerr := makeActor(av, addr)
|
act, aerr := makeAccountActor(av, addr)
|
||||||
if aerr != nil {
|
if aerr != nil {
|
||||||
return nil, address.Undef, aerr
|
return nil, address.Undef, aerr
|
||||||
}
|
}
|
||||||
@ -95,7 +95,7 @@ func TryCreateAccountActor(rt *Runtime, addr address.Address) (*types.Actor, add
|
|||||||
return act, addrID, nil
|
return act, addrID, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func makeActor(ver actors.Version, addr address.Address) (*types.Actor, aerrors.ActorError) {
|
func makeAccountActor(ver actors.Version, addr address.Address) (*types.Actor, aerrors.ActorError) {
|
||||||
switch addr.Protocol() {
|
switch addr.Protocol() {
|
||||||
case address.BLS, address.SECP256K1:
|
case address.BLS, address.SECP256K1:
|
||||||
return newAccountActor(ver), nil
|
return newAccountActor(ver), nil
|
||||||
|
Loading…
Reference in New Issue
Block a user