mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
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:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user