Get STAccount value as NewcoinAddress.

This commit is contained in:
JoelKatz
2012-04-23 15:59:39 -07:00
parent 454f47fa99
commit bf4becf436

View File

@@ -203,6 +203,20 @@ bool STAccount::getValueH160(uint160& v) const
return true;
}
NewcoinAddress STAccount::getValueNCA() const
{
NewcoinAddress a;
uint160 v;
if (getValueH160(v))
a.setAccountID(v);
return a;
}
void STAccount::setValueNCA(const NewcoinAddress& nca)
{
setValueH160(nca.getAccountID());
}
std::string STTaggedList::getText() const
{
std::string ret;