mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
move internal/server/helpers.go to internal/ship/action.go
This commit is contained in:
parent
2ed9518635
commit
67d33a280e
2 changed files with 3 additions and 3 deletions
|
|
@ -120,7 +120,7 @@ func (processor *ShipProcessor) processTransactionTrace(log *log.Entry, blockNum
|
|||
// Actions
|
||||
for _, actionTraceVar := range trace.ActionTraces {
|
||||
|
||||
actionTrace := toActionTraceV1(actionTraceVar)
|
||||
actionTrace := ship_helper.ToActionTraceV1(actionTraceVar)
|
||||
actMsg := processor.proccessActionTrace(logger, actionTrace)
|
||||
if actMsg != nil {
|
||||
actMsg.TxID = trace.ID.String()
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
package server
|
||||
package ship
|
||||
|
||||
import (
|
||||
"github.com/shufflingpixels/antelope-go/ship"
|
||||
)
|
||||
|
||||
// convert a ActionTrace to ActionTraceV1
|
||||
func toActionTraceV1(trace *ship.ActionTrace) *ship.ActionTraceV1 {
|
||||
func ToActionTraceV1(trace *ship.ActionTrace) *ship.ActionTraceV1 {
|
||||
if trace.V0 != nil {
|
||||
// convert to v1
|
||||
return &ship.ActionTraceV1{
|
||||
Loading…
Add table
Add a link
Reference in a new issue