Skip to content

Commit

Permalink
rename vm#make{=>Account}Actor().
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk committed Oct 26, 2021
1 parent a94a48f commit 95d294d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain/vm/mkactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func TryCreateAccountActor(rt *Runtime, addr address.Address) (*types.Actor, add
return nil, address.Undef, aerrors.Escalate(err, "unsupported network version")
}

act, aerr := makeActor(av, addr)
act, aerr := makeAccountActor(av, addr)
if aerr != nil {
return nil, address.Undef, aerr
}
Expand All @@ -95,7 +95,7 @@ func TryCreateAccountActor(rt *Runtime, addr address.Address) (*types.Actor, add
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() {
case address.BLS, address.SECP256K1:
return newAccountActor(ver), nil
Expand Down

0 comments on commit 95d294d

Please sign in to comment.