Skip to content

Commit

Permalink
fix assertion message
Browse files Browse the repository at this point in the history
  • Loading branch information
huangminghuang committed Mar 16, 2023
1 parent e6020fb commit af1dcf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/chain_plugin/chain_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1909,7 +1909,7 @@ chain::signed_block_ptr read_only::get_raw_block(const read_only::get_raw_block_

EOS_ASSERT( !params.block_num_or_id.empty() && params.block_num_or_id.size() <= 64,
chain::block_id_type_exception,
"Invalid Block number or ID, must be greater than 0 and less than 64 characters"
"Invalid Block number or ID, must be greater than 0 and less than 65 characters"
);

try {
Expand All @@ -1935,7 +1935,7 @@ read_only::get_block_header_result read_only::get_block_header(const read_only::

EOS_ASSERT( !params.block_num_or_id.empty() && params.block_num_or_id.size() <= 64,
chain::block_id_type_exception,
"Invalid Block number or ID, must be greater than 0 and less than 64 characters"
"Invalid Block number or ID, must be greater than 0 and less than 65 characters"
);

try {
Expand Down

0 comments on commit af1dcf2

Please sign in to comment.