Skip to content

Commit

Permalink
feat(mimicry): add txn type
Browse files Browse the repository at this point in the history
  • Loading branch information
Savid committed Sep 20, 2023
1 parent b4438f9 commit 474449a
Show file tree
Hide file tree
Showing 3 changed files with 540 additions and 522 deletions.
1 change: 1 addition & 0 deletions pkg/mimicry/p2p/execution/event_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func (p *Peer) getTransactionData(ctx context.Context, event *types.Transaction,
Hash: event.Hash().String(),
Size: strconv.FormatFloat(float64(event.Size()), 'f', 0, 64),
CallDataSize: fmt.Sprintf("%d", len(event.Data())),
Type: wrapperspb.UInt32(uint32(event.Type())),
}

return extra, nil
Expand Down
Loading

0 comments on commit 474449a

Please sign in to comment.