Merge pull request #624 from clark800/misc

Better error message when using methods that require a connection when servers are not provided
This commit is contained in:
Chris Clark
2015-11-03 11:05:21 -08:00
5 changed files with 22 additions and 5 deletions

View File

@@ -34,7 +34,8 @@ function parseAccountOrder(address: string, order: Object): Object {
const properties = {
maker: address,
sequence: order.seq,
makerExchangeRate: computeQuality(takerGetsAmount, takerPaysAmount)
makerExchangeRate: order.quality ? order.quality.toString()
: computeQuality(takerGetsAmount, takerPaysAmount)
};
return {specification, properties};