Skip to content

Commit

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

revert-lowercase-commit follow-up
  • Loading branch information
thanhnguyennguyen authored Sep 14, 2019
2 parents c3c5c7f + 66414b7 commit 52bf36e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tomox/trade.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"github.com/ethereum/go-ethereum/crypto/sha3"
"github.com/globalsign/mgo/bson"
"math/big"
"strings"
"time"
)

Expand Down Expand Up @@ -75,14 +74,14 @@ func (t *Trade) GetBSON() (interface{}, error) {
tr := TradeBSON{
ID: t.ID,
PairName: t.PairName,
Maker: strings.ToLower(t.Maker.Hex()),
Taker: strings.ToLower(t.Taker.Hex()),
BaseToken: strings.ToLower(t.BaseToken.Hex()),
QuoteToken: strings.ToLower(t.QuoteToken.Hex()),
Maker: t.Maker.Hex(),
Taker: t.Taker.Hex(),
BaseToken: t.BaseToken.Hex(),
QuoteToken: t.QuoteToken.Hex(),
MakerOrderHash: t.MakerOrderHash.Hex(),
TakerOrderHash: t.TakerOrderHash.Hex(),
MakerExchange: strings.ToLower(t.MakerExchange.Hex()),
TakerExchange: strings.ToLower(t.TakerExchange.Hex()),
MakerExchange: t.MakerExchange.Hex(),
TakerExchange: t.TakerExchange.Hex(),
Hash: t.Hash.Hex(),
TxHash: t.TxHash.Hex(),
CreatedAt: t.CreatedAt,
Expand Down

0 comments on commit 52bf36e

Please sign in to comment.