Skip to content

Commit

Permalink
Revert "hash to lowercase for easily filtering"
Browse files Browse the repository at this point in the history
This reverts commit 701573d.
  • Loading branch information
thanhnguyennguyen committed Sep 14, 2019
1 parent be5fe6a commit 5ac884c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tomox/mongodb_encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (o *OrderItem) GetBSON() (interface{}, error) {
Status: o.Status,
Side: o.Side,
Type: o.Type,
Hash: strings.ToLower(o.Hash.Hex()),
Hash: o.Hash.Hex(),
Quantity: o.Quantity.String(),
Price: o.Price.String(),
Nonce: o.Nonce.String(),
Expand Down
4 changes: 2 additions & 2 deletions tomox/trade.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ func (t *Trade) GetBSON() (interface{}, error) {
TakerOrderHash: t.TakerOrderHash.Hex(),
MakerExchange: strings.ToLower(t.MakerExchange.Hex()),
TakerExchange: strings.ToLower(t.TakerExchange.Hex()),
Hash: strings.ToLower(t.Hash.Hex()),
TxHash: strings.ToLower(t.TxHash.Hex()),
Hash: t.Hash.Hex(),
TxHash: t.TxHash.Hex(),
CreatedAt: t.CreatedAt,
UpdatedAt: t.UpdatedAt,
PricePoint: t.PricePoint.String(),
Expand Down

0 comments on commit 5ac884c

Please sign in to comment.