Skip to content

Commit

Permalink
Add the address to actor
Browse files Browse the repository at this point in the history
  • Loading branch information
Terryhung committed Aug 24, 2023
1 parent d531687 commit 2a12c22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chain/datasource/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ func (t *DataSource) ActorInfo(ctx context.Context, addr address.Address, tsk ty
act, err := t.Actor(ctx, addr, tsk)
actorInfo := tasks.ActorInfo{}
if err == nil {
if act.Address == nil {
act.Address = &addr
}
actorInfo.Actor = act
actorName, actorFamily, err := util.ActorNameAndFamilyFromCode(act.Code)
if err == nil {
Expand Down

0 comments on commit 2a12c22

Please sign in to comment.