From 26ca96af0e9f9fddfd6553696bd43ca3b24a8731 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Mon, 30 Mar 2015 17:34:51 +0200 Subject: [PATCH] Last little fix for ABI. Should work ok now. --- abi/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/abi/main.cpp b/abi/main.cpp index c1cd63bc2..80742fcd2 100644 --- a/abi/main.cpp +++ b/abi/main.cpp @@ -264,12 +264,12 @@ struct ABIType { bytes ret = _b; while (ret.size() < _length) - if (_f == Format::Binary) + if (base == Base::Bytes || (base == Base::Unknown && _f == Format::Binary)) ret.push_back(0); else ret.insert(ret.begin(), 0); while (ret.size() > _length) - if (_f == Format::Binary) + if (base == Base::Bytes || (base == Base::Unknown && _f == Format::Binary)) ret.pop_back(); else ret.erase(ret.begin());