mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Helper function for STAccount->uint160 inside an object.
This commit is contained in:
@@ -210,6 +210,18 @@ void SerializedTransaction::setSigningAccount(const std::vector<unsigned char>&
|
||||
updateSigningAccount();
|
||||
}
|
||||
|
||||
uint160 SerializedTransaction::GetITFieldAccount(SOE_Field field)
|
||||
{
|
||||
uint160 r;
|
||||
SerializedType* st = mInnerTxn.getPField(field);
|
||||
if (!st) return r;
|
||||
|
||||
STAccount *ac = dynamic_cast<STAccount*>(ac);
|
||||
if (!ac) return r;
|
||||
ac->getValueH160(r);
|
||||
return r;
|
||||
}
|
||||
|
||||
int SerializedTransaction::getITFieldIndex(SOE_Field field) const
|
||||
{
|
||||
return mInnerTxn.getFieldIndex(field);
|
||||
|
||||
Reference in New Issue
Block a user