Browse Source

Fix for hash size.

cl-refactor
Gav Wood 10 years ago
parent
commit
d554ecfe75
  1. 7
      abi/main.cpp

7
abi/main.cpp

@ -302,10 +302,9 @@ int main(int argc, char** argv)
if (abi.empty())
{
if (!method.empty())
ret = FixedHash<32>(sha3(method)).asBytes();
if (method.empty())
for (tuple<bytes, ABIType, Format> const& arg: args)
ret += aligned(get<0>(arg), get<1>(arg), get<2>(arg), 32);
ret = FixedHash<4>(sha3(method)).asBytes();
for (tuple<bytes, ABIType, Format> const& arg: args)
ret += aligned(get<0>(arg), get<1>(arg), get<2>(arg), 32);
}
else
{

Loading…
Cancel
Save