Merge pull request #7562 from filecoin-project/raulk/rename-makeActor

rename vm#make{=>Account}Actor().
This commit is contained in:
Jiaying Wang 2021-10-26 20:55:09 -04:00 committed by GitHub
commit bcfe7a76e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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