Skip to content

Commit

Permalink
Merge pull request ethereum#705 from thanhnguyennguyen/revert-lowerca…
Browse files Browse the repository at this point in the history
…se-commit

Revert lowercase commit
  • Loading branch information
thanhnguyennguyen authored Sep 14, 2019
2 parents cff7e12 + 5ac884c commit c3c5c7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions tomox/mongodb_encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package tomox
import (
"fmt"
"strconv"
"strings"
"time"

"github.com/ethereum/go-ethereum/common"
Expand All @@ -13,14 +12,14 @@ import (
func (o *OrderItem) GetBSON() (interface{}, error) {
or := OrderItemBSON{
PairName: o.PairName,
ExchangeAddress: strings.ToLower(o.ExchangeAddress.Hex()),
UserAddress: strings.ToLower(o.UserAddress.Hex()),
BaseToken: strings.ToLower(o.BaseToken.Hex()),
QuoteToken: strings.ToLower(o.QuoteToken.Hex()),
ExchangeAddress: o.ExchangeAddress.Hex(),
UserAddress: o.UserAddress.Hex(),
BaseToken: o.BaseToken.Hex(),
QuoteToken: o.QuoteToken.Hex(),
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 c3c5c7f

Please sign in to comment.