Skip to content

Commit

Permalink
in offerlist: renamed 'name' to 'guid', added 'title' field
Browse files Browse the repository at this point in the history
  • Loading branch information
coderboo committed Apr 15, 2015
1 parent ce89bb1 commit bdea560
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/offer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2057,7 +2057,8 @@ Value offerlist(const Array& params, bool fHelp) {

// build the output object
Object oName;
oName.push_back(Pair("name", stringFromVch(vchName)));
oName.push_back(Pair("guid", stringFromVch(vchName)));
oName.push_back(Pair("title", stringFromVch(theOfferA.sTitle)));
oName.push_back(Pair("category", stringFromVch(theOfferA.sCategory)));
oName.push_back(Pair("description", stringFromVch(theOfferA.sDescription)));
oName.push_back(Pair("price", ValueFromAmount(theOfferA.nPrice) ) );
Expand Down

0 comments on commit bdea560

Please sign in to comment.