mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +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);
|
||||
|
||||
@@ -76,6 +76,7 @@ public:
|
||||
uint32 getITFieldU32(SOE_Field field) const { return mInnerTxn.getValueFieldU32(field); }
|
||||
uint64 getITFieldU64(SOE_Field field) const { return mInnerTxn.getValueFieldU64(field); }
|
||||
uint160 getITFieldH160(SOE_Field field) const { return mInnerTxn.getValueFieldH160(field); }
|
||||
uint160 getITFieldAccount(SOE_Field field) const;
|
||||
uint256 getITFieldH256(SOE_Field field) const { return mInnerTxn.getValueFieldH256(field); }
|
||||
std::vector<unsigned char> getITFieldVL(SOE_Field field) const { return mInnerTxn.getValueFieldVL(field); }
|
||||
std::vector<TaggedListItem> getITFieldTL(SOE_Field field) const { return mInnerTxn.getValueFieldTL(field); }
|
||||
|
||||
Reference in New Issue
Block a user