mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Get STAccount value as NewcoinAddress.
This commit is contained in:
@@ -203,6 +203,20 @@ bool STAccount::getValueH160(uint160& v) const
|
|||||||
return true;
|
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 STTaggedList::getText() const
|
||||||
{
|
{
|
||||||
std::string ret;
|
std::string ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user