From d554ecfe7572e4f917ace5d71f3162283929b692 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Wed, 25 Mar 2015 23:04:23 +0100 Subject: [PATCH] Fix for hash size. --- abi/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/abi/main.cpp b/abi/main.cpp index a17a47839..63020f07b 100644 --- a/abi/main.cpp +++ b/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 const& arg: args) - ret += aligned(get<0>(arg), get<1>(arg), get<2>(arg), 32); + ret = FixedHash<4>(sha3(method)).asBytes(); + for (tuple const& arg: args) + ret += aligned(get<0>(arg), get<1>(arg), get<2>(arg), 32); } else {