This commit is contained in:
jl777
2016-10-23 15:07:07 -03:00
parent de5678d8ed
commit f09940d8b4

View File

@@ -392,7 +392,7 @@ Value paxprice(const Array& params, bool fHelp)
Object ret; uint64_t pricetoshis; Object ret; uint64_t pricetoshis;
std::string base = params[0].get_str(); std::string base = params[0].get_str();
std::string rel = params[1].get_str(); std::string rel = params[1].get_str();
int height = params[2].get_int(); int height = atoi(params[2].get_str().c_str());
pricetoshis = komodo_paxprice(height,(char *)base.c_str(),(char *)rel.c_str()); pricetoshis = komodo_paxprice(height,(char *)base.c_str(),(char *)rel.c_str());
ret.push_back(Pair("base", base)); ret.push_back(Pair("base", base));
ret.push_back(Pair("rel", rel)); ret.push_back(Pair("rel", rel));