JSON->Account

This commit is contained in:
JoelKatz
2012-10-02 01:01:27 -07:00
parent 4d64ab03b0
commit d9b0d39cf6
3 changed files with 29 additions and 5 deletions

View File

@@ -231,9 +231,14 @@ bool STVector256::isEquivalent(const SerializedType& t) const
// STAccount
//
STAccount::STAccount(SField::ref n, const uint160& v) : STVariableLength(n)
{
peekValue().insert(peekValue().end(), v.begin(), v.end());
}
bool STAccount::isValueH160() const
{
return peekValue().size() == (160/8);
return peekValue().size() == (160 / 8);
}
void STAccount::setValueH160(const uint160& v)