Skip to content

Commit

Permalink
SKALE-2589 misprint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiy-skalelabs committed Jun 4, 2020
1 parent 036c8b2 commit 33bdc48
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions libweb3jsonrpc/SkaleStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ Json::Value SkaleStats::skale_imaVerifyAndSign( const Json::Value& request ) {
nFiledSize = 32;
if ( ( nPos + nFiledSize ) > cntMessageBytes )
throw std::runtime_error(
skutils::tools::format( "IMA message to short, ERC20(1), nPos=%zu, "
skutils::tools::format( "IMA message too short, ERC20(1), nPos=%zu, "
"nFiledSize=%zu, cntMessageBytes=%zu",
nPos, nFiledSize, cntMessageBytes ) );
const dev::u256 contractPosition =
Expand All @@ -909,7 +909,7 @@ Json::Value SkaleStats::skale_imaVerifyAndSign( const Json::Value& request ) {
nFiledSize = 32;
if ( ( nPos + nFiledSize ) > cntMessageBytes )
throw std::runtime_error(
skutils::tools::format( "IMA message to short, ERC20(2), nPos=%zu, "
skutils::tools::format( "IMA message too short, ERC20(2), nPos=%zu, "
"nFiledSize=%zu, cntMessageBytes=%zu",
nPos, nFiledSize, cntMessageBytes ) );
const dev::u256 addressTo =
Expand All @@ -920,7 +920,7 @@ Json::Value SkaleStats::skale_imaVerifyAndSign( const Json::Value& request ) {
nFiledSize = 32;
if ( ( nPos + nFiledSize ) > cntMessageBytes )
throw std::runtime_error(
skutils::tools::format( "IMA message to short, ERC20(3), nPos=%zu, "
skutils::tools::format( "IMA message too short, ERC20(3), nPos=%zu, "
"nFiledSize=%zu, cntMessageBytes=%zu",
nPos, nFiledSize, cntMessageBytes ) );
const dev::u256 amount =
Expand All @@ -931,7 +931,7 @@ Json::Value SkaleStats::skale_imaVerifyAndSign( const Json::Value& request ) {
nFiledSize = 32;
if ( ( nPos + nFiledSize ) > cntMessageBytes )
throw std::runtime_error(
skutils::tools::format( "IMA message to short, ERC20(4), nPos=%zu, "
skutils::tools::format( "IMA message too short, ERC20(4), nPos=%zu, "
"nFiledSize=%zu, cntMessageBytes=%zu",
nPos, nFiledSize, cntMessageBytes ) );
const dev::u256 sizeOfName =
Expand All @@ -942,7 +942,7 @@ Json::Value SkaleStats::skale_imaVerifyAndSign( const Json::Value& request ) {
// std::cout << "\"nFiledSize\" is " << nFiledSize << std::endl;
if ( ( nPos + nFiledSize ) > cntMessageBytes )
throw std::runtime_error(
skutils::tools::format( "IMA message to short, ERC20(5), nPos=%zu, "
skutils::tools::format( "IMA message too short, ERC20(5), nPos=%zu, "
"nFiledSize=%zu, cntMessageBytes=%zu",
nPos, nFiledSize, cntMessageBytes ) );
std::string strName( "" );
Expand All @@ -953,7 +953,7 @@ Json::Value SkaleStats::skale_imaVerifyAndSign( const Json::Value& request ) {
nFiledSize = 32;
if ( ( nPos + nFiledSize ) > cntMessageBytes )
throw std::runtime_error(
skutils::tools::format( "IMA message to short, ERC20(6), nPos=%zu, "
skutils::tools::format( "IMA message too short, ERC20(6), nPos=%zu, "
"nFiledSize=%zu, cntMessageBytes=%zu",
nPos, nFiledSize, cntMessageBytes ) );
const dev::u256 sizeOfSymbol =
Expand All @@ -964,7 +964,7 @@ Json::Value SkaleStats::skale_imaVerifyAndSign( const Json::Value& request ) {
// std::cout << "\"nFiledSize\" is " << nFiledSize << std::endl;
if ( ( nPos + nFiledSize ) > cntMessageBytes )
throw std::runtime_error(
skutils::tools::format( "IMA message to short, ERC20(7), nPos=%zu, "
skutils::tools::format( "IMA message too short, ERC20(7), nPos=%zu, "
"nFiledSize=%zu, cntMessageBytes=%zu",
nPos, nFiledSize, cntMessageBytes ) );
std::string strSymbol( "" );
Expand All @@ -975,7 +975,7 @@ Json::Value SkaleStats::skale_imaVerifyAndSign( const Json::Value& request ) {
nFiledSize = 1;
if ( ( nPos + nFiledSize ) > cntMessageBytes )
throw std::runtime_error(
skutils::tools::format( "IMA message to short, ERC20(8), nPos=%zu, "
skutils::tools::format( "IMA message too short, ERC20(8), nPos=%zu, "
"nFiledSize=%zu, cntMessageBytes=%zu",
nPos, nFiledSize, cntMessageBytes ) );
const uint8_t nDecimals = uint8_t( vecBytes[nPos] );
Expand All @@ -985,7 +985,7 @@ Json::Value SkaleStats::skale_imaVerifyAndSign( const Json::Value& request ) {
nFiledSize = 32;
if ( ( nPos + nFiledSize ) > cntMessageBytes )
throw std::runtime_error(
skutils::tools::format( "IMA message to short, ERC20(9), nPos=%zu, "
skutils::tools::format( "IMA message too short, ERC20(9), nPos=%zu, "
"nFiledSize=%zu, cntMessageBytes=%zu",
nPos, nFiledSize, cntMessageBytes ) );
const dev::u256 totalSupply =
Expand Down Expand Up @@ -1040,7 +1040,7 @@ Json::Value SkaleStats::skale_imaVerifyAndSign( const Json::Value& request ) {
nFiledSize = 32;
if ( ( nPos + nFiledSize ) > cntMessageBytes )
throw std::runtime_error(
skutils::tools::format( "IMA message to short, ERC721(1), nPos=%zu, "
skutils::tools::format( "IMA message too short, ERC721(1), nPos=%zu, "
"nFiledSize=%zu, cntMessageBytes=%zu",
nPos, nFiledSize, cntMessageBytes ) );
const dev::u256 contractPosition =
Expand All @@ -1050,7 +1050,7 @@ Json::Value SkaleStats::skale_imaVerifyAndSign( const Json::Value& request ) {
nFiledSize = 32;
if ( ( nPos + nFiledSize ) > cntMessageBytes )
throw std::runtime_error(
skutils::tools::format( "IMA message to short, ERC721(2), nPos=%zu, "
skutils::tools::format( "IMA message too short, ERC721(2), nPos=%zu, "
"nFiledSize=%zu, cntMessageBytes=%zu",
nPos, nFiledSize, cntMessageBytes ) );
const dev::u256 addressTo =
Expand All @@ -1060,7 +1060,7 @@ Json::Value SkaleStats::skale_imaVerifyAndSign( const Json::Value& request ) {
nFiledSize = 32;
if ( ( nPos + nFiledSize ) > cntMessageBytes )
throw std::runtime_error(
skutils::tools::format( "IMA message to short, ERC721(3), nPos=%zu, "
skutils::tools::format( "IMA message too short, ERC721(3), nPos=%zu, "
"nFiledSize=%zu, cntMessageBytes=%zu",
nPos, nFiledSize, cntMessageBytes ) );
const dev::u256 tokenID =
Expand All @@ -1070,7 +1070,7 @@ Json::Value SkaleStats::skale_imaVerifyAndSign( const Json::Value& request ) {
nFiledSize = 32;
if ( ( nPos + nFiledSize ) > cntMessageBytes )
throw std::runtime_error(
skutils::tools::format( "IMA message to short, ERC721(4), nPos=%zu, "
skutils::tools::format( "IMA message too short, ERC721(4), nPos=%zu, "
"nFiledSize=%zu, cntMessageBytes=%zu",
nPos, nFiledSize, cntMessageBytes ) );
const dev::u256 sizeOfName =
Expand All @@ -1079,7 +1079,7 @@ Json::Value SkaleStats::skale_imaVerifyAndSign( const Json::Value& request ) {
nFiledSize = sizeOfName.convert_to< size_t >();
if ( ( nPos + nFiledSize ) > cntMessageBytes )
throw std::runtime_error(
skutils::tools::format( "IMA message to short, ERC721(5), nPos=%zu, "
skutils::tools::format( "IMA message too short, ERC721(5), nPos=%zu, "
"nFiledSize=%zu, cntMessageBytes=%zu",
nPos, nFiledSize, cntMessageBytes ) );
std::string strName( "" );
Expand All @@ -1090,7 +1090,7 @@ Json::Value SkaleStats::skale_imaVerifyAndSign( const Json::Value& request ) {
nFiledSize = 32;
if ( ( nPos + nFiledSize ) > cntMessageBytes )
throw std::runtime_error(
skutils::tools::format( "IMA message to short, ERC721(6), nPos=%zu, "
skutils::tools::format( "IMA message too short, ERC721(6), nPos=%zu, "
"nFiledSize=%zu, cntMessageBytes=%zu",
nPos, nFiledSize, cntMessageBytes ) );
const dev::u256 sizeOfSymbol =
Expand All @@ -1099,7 +1099,7 @@ Json::Value SkaleStats::skale_imaVerifyAndSign( const Json::Value& request ) {
nFiledSize = sizeOfSymbol.convert_to< size_t >();
if ( ( nPos + nFiledSize ) > cntMessageBytes )
throw std::runtime_error(
skutils::tools::format( "IMA message to short, ERC721(7), nPos=%zu, "
skutils::tools::format( "IMA message too short, ERC721(7), nPos=%zu, "
"nFiledSize=%zu, cntMessageBytes=%zu",
nPos, nFiledSize, cntMessageBytes ) );
std::string strSymbol( "" );
Expand Down

0 comments on commit 33bdc48

Please sign in to comment.