Mark the code that doesn't work because it can't get to transResultInfoA.

(Only needed for JSON->binary transaction metadata which nobody may ever want anyway.)
This commit is contained in:
JoelKatz
2012-10-16 16:23:42 -07:00
parent 25d888ff48
commit 56b5b5c597

View File

@@ -926,7 +926,19 @@ std::auto_ptr<STObject> STObject::parseJson(const Json::Value& object, SField::r
{
case STI_UINT8:
if (value.isString())
{
#if 0
if (field == sfTransactionResult)
{
TER terCode;
if (FUNCTION_THAT_DOESNT_EXIST(value.asString(), terCode))
value = static_cast<int>(terCode);
else
data.push_back(new STUInt8(field, lexical_cast_st<unsigned char>(value.asString())));
}
data.push_back(new STUInt8(field, lexical_cast_st<unsigned char>(value.asString())));
#endif
}
else if (value.isInt())
{
if (value.asInt() < 0 || value.asInt() > 255)