diff --git a/mix/ContractCallDataEncoder.cpp b/mix/ContractCallDataEncoder.cpp index 7a48263a0..f1283f433 100644 --- a/mix/ContractCallDataEncoder.cpp +++ b/mix/ContractCallDataEncoder.cpp @@ -163,7 +163,7 @@ dev::bytes ContractCallDataEncoder::decodeBytes(dev::bytes const& _rawValue) QString ContractCallDataEncoder::toString(dev::bytes const& _b) { QString str; - if (isString(_b, str)) + if (asString(_b, str)) return "\"" + str + "\" " + QString::fromStdString(dev::toJS(_b)); else return QString::fromStdString(dev::toJS(_b)); @@ -206,7 +206,7 @@ QStringList ContractCallDataEncoder::decode(QList const& } -bool ContractCallDataEncoder::isString(dev::bytes const& _b, QString& _str) +bool ContractCallDataEncoder::asString(dev::bytes const& _b, QString& _str) { dev::bytes bunPad = unpadded(_b); for (unsigned i = 0; i < bunPad.size(); i++) diff --git a/mix/ContractCallDataEncoder.h b/mix/ContractCallDataEncoder.h index 178cdcdf8..e225158c7 100644 --- a/mix/ContractCallDataEncoder.h +++ b/mix/ContractCallDataEncoder.h @@ -66,7 +66,7 @@ private: dev::bytes encodeBytes(QString const& _str); dev::bytes decodeBytes(dev::bytes const& _rawValue); QString toString(dev::bytes const& _b); - bool isString(dev::bytes const& _b, QString& _str); + bool asString(dev::bytes const& _b, QString& _str); private: bytes m_encodedData;