@@ -118,11 +118,24 @@ func (t *Task) ProcessTipSets(ctx context.Context, current *types.TipSet, execut
118
118
continue
119
119
}
120
120
for _ , child := range util .GetChildMessagesOf (parentMsg ) {
121
- toCode , _ := getActorCode (ctx , child .Message .To )
121
+ fromCode , _ := getActorCode (ctx , child .Message .From )
122
+ var fromActorCode string
123
+ if ! fromCode .Equals (cid .Undef ) {
124
+ fromActorCode , _ , err = util .ActorNameAndFamilyFromCode (fromCode )
125
+ if err != nil {
126
+ errs = append (errs , err )
127
+ }
128
+ }
122
129
123
- toActorCode := "<Unknown>"
130
+ toCode , _ := getActorCode (ctx , child .Message .To )
131
+ actorCode := "<Unknown>"
132
+ var toActorCode string
124
133
if ! toCode .Equals (cid .Undef ) {
125
- toActorCode = toCode .String ()
134
+ actorCode = toCode .String ()
135
+ toActorCode , _ , err = util .ActorNameAndFamilyFromCode (toCode )
136
+ if err != nil {
137
+ errs = append (errs , err )
138
+ }
126
139
}
127
140
fromEthAddress := getEthAddress (child .Message .From )
128
141
toEthAddress := getEthAddress (child .Message .To )
@@ -139,13 +152,15 @@ func (t *Task) ProcessTipSets(ctx context.Context, current *types.TipSet, execut
139
152
To : toEthAddress ,
140
153
Value : child .Message .Value .String (),
141
154
ExitCode : int64 (child .Receipt .ExitCode ),
142
- ActorCode : toActorCode ,
155
+ ActorCode : actorCode ,
143
156
Method : uint64 (child .Message .Method ),
144
157
Index : child .Index ,
145
158
Params : ethtypes .EthBytes (child .Message .Params ).String (),
146
159
Returns : ethtypes .EthBytes (child .Receipt .Return ).String (),
147
160
ParamsCodec : child .Message .ParamsCodec ,
148
161
ReturnsCodec : child .Receipt .ReturnCodec ,
162
+ ToActorName : toActorCode ,
163
+ FromActorName : fromActorCode ,
149
164
}
150
165
151
166
// only parse params and return of successful messages since unsuccessful messages don't return a parseable value.
0 commit comments