mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Tidy up TxFormat and create TxFormats, TxFlags
This commit is contained in:
@@ -1262,12 +1262,12 @@ UPTR_T<STObject> STObject::parseJson (const Json::Value& object, SField::ref inN
|
||||
{
|
||||
if (field == sfTransactionType)
|
||||
{
|
||||
TransactionFormat* f = TransactionFormat::getTxnFormat (strValue);
|
||||
TxFormat* f = TxFormats::getInstance ().findByName (strValue);
|
||||
|
||||
if (!f)
|
||||
throw std::runtime_error ("Unknown transaction type");
|
||||
|
||||
data.push_back (new STUInt16 (field, static_cast<uint16> (f->t_type)));
|
||||
data.push_back (new STUInt16 (field, static_cast<uint16> (f->getType ())));
|
||||
|
||||
if (*name == sfGeneric)
|
||||
name = &sfTransaction;
|
||||
|
||||
Reference in New Issue
Block a user