mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
app/ship_processor.go: include authorization in ActionTrace
This commit is contained in:
parent
c8944ea18b
commit
8b927ed366
1 changed files with 7 additions and 0 deletions
|
|
@ -122,6 +122,13 @@ func (processor *ShipProcessor) processTraces(traces []*ship.TransactionTraceV0)
|
|||
HexData: hex.EncodeToString(act_trace.Act.Data),
|
||||
}
|
||||
|
||||
for _, auth := range act_trace.Act.Authorization {
|
||||
act.Authorization = append(act.Authorization, message.PermissionLevel{
|
||||
Actor: auth.Actor.String(),
|
||||
Permission: auth.Permission.String(),
|
||||
})
|
||||
}
|
||||
|
||||
ABI, err := processor.abi.GetAbi(act_trace.Act.Account)
|
||||
if err == nil {
|
||||
data, err := ABI.DecodeAction(act_trace.Act.Data, act_trace.Act.Name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue