mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-04 12:03:41 +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
|
// Actions
|
||||||
for _, actionTraceVar := range trace.ActionTraces {
|
for _, actionTraceVar := range trace.ActionTraces {
|
||||||
|
|
||||||
actionTrace := toActionTraceV1(actionTraceVar)
|
actionTrace := ship_helper.ToActionTraceV1(actionTraceVar)
|
||||||
actMsg := processor.proccessActionTrace(logger, actionTrace)
|
actMsg := processor.proccessActionTrace(logger, actionTrace)
|
||||||
if actMsg != nil {
|
if actMsg != nil {
|
||||||
actMsg.TxID = trace.ID.String()
|
actMsg.TxID = trace.ID.String()
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
package server
|
package ship
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/shufflingpixels/antelope-go/ship"
|
"github.com/shufflingpixels/antelope-go/ship"
|
||||||
)
|
)
|
||||||
|
|
||||||
// convert a ActionTrace to ActionTraceV1
|
// convert a ActionTrace to ActionTraceV1
|
||||||
func toActionTraceV1(trace *ship.ActionTrace) *ship.ActionTraceV1 {
|
func ToActionTraceV1(trace *ship.ActionTrace) *ship.ActionTraceV1 {
|
||||||
if trace.V0 != nil {
|
if trace.V0 != nil {
|
||||||
// convert to v1
|
// convert to v1
|
||||||
return &ship.ActionTraceV1{
|
return &ship.ActionTraceV1{
|
||||||
Loading…
Add table
Add a link
Reference in a new issue