Skip to content

Commit 77308b6

Browse files
authored
Merge pull request #104 from YaroShkvorets/patch-1
Fix error message in division operator
2 parents c4384f4 + bc52b10 commit 77308b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/eosiolib/core/eosio/asset.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ namespace eosio {
231231
*/
232232
friend int64_t operator/( const asset& a, const asset& b ) {
233233
eosio::check( b.amount != 0, "divide by zero" );
234-
eosio::check( a.symbol == b.symbol, "comparison of assets with different symbols is not allowed" );
234+
eosio::check( a.symbol == b.symbol, "attempt to divide assets with different symbol" );
235235
return a.amount / b.amount;
236236
}
237237

tests/unit/asset_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ EOSIO_TEST_BEGIN(asset_type_test)
312312
})
313313
)
314314

315-
CHECK_ASSERT( "comparison of assets with different symbols is not allowed", (
315+
CHECK_ASSERT( "attempt to divide assets with different symbol", (
316316
[&]() {
317317
asset{1LL, s0} / asset{1LL, s1};
318318
})

0 commit comments

Comments
 (0)