Skip to content

Commit

Permalink
Fix #45
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekn committed Nov 11, 2015
1 parent defe4bd commit b854bfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/orderbook_call_builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ export class OrderbookCallBuilder extends CallBuilder {
super(url);
this.url.segment('order_book');
if (!selling.isNative()) {
this.url.addQuery("selling_asset_type", 'credit_alphanum4');
this.url.addQuery("selling_asset_type", selling.getAssetType());
this.url.addQuery("selling_asset_code", selling.getCode());
this.url.addQuery("selling_asset_issuer", selling.getIssuer());
} else {
this.url.addQuery("selling_asset_type", 'native');
}
if (!buying.isNative()) {
this.url.addQuery("buying_asset_type", 'credit_alphanum4');
this.url.addQuery("buying_asset_type", buying.getAssetType());
this.url.addQuery("buying_asset_code", buying.getCode());
this.url.addQuery("buying_asset_issuer", buying.getIssuer());
} else {
Expand Down

1 comment on commit b854bfb

@FredericHeem
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, that was quick.

Please sign in to comment.