-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev 2015 cancel spot orders #843
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #843 +/- ##
==========================================
+ Coverage 43.03% 43.08% +0.05%
==========================================
Files 681 682 +1
Lines 23494 23538 +44
==========================================
+ Hits 10111 10142 +31
- Misses 12162 12167 +5
- Partials 1221 1229 +8 |
return sdk.NewEvent(TypeEvtCloseSpotOrder, | ||
sdk.NewAttribute("order_type", order.OrderType.String()), | ||
sdk.NewAttribute("owner_address", order.OwnerAddress), | ||
sdk.NewAttribute("id", strconv.FormatInt(int64(order.OrderId), 10)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cryptokage1996 we need to add all the order fields as event attributes part of the event we are emitting.
return sdk.NewEvent(TypeEvtCloseSpotOrder, | ||
sdk.NewAttribute("order_type", order.PerpetualOrderType.String()), | ||
sdk.NewAttribute("owner_address", order.OwnerAddress), | ||
sdk.NewAttribute("id", strconv.FormatInt(int64(order.OrderId), 10)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cryptokage1996 we need to add all the order fields as event attributes part of the event we are emitting.
https://elys.atlassian.net/browse/DEV-2015