From d0659848543a3a7d6e3abed8f0f4bb25b85a42eb Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Fri, 17 Jul 2015 01:32:52 -0400 Subject: [PATCH] fix crash due to bad cast --- tests/common/database_fixture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common/database_fixture.cpp b/tests/common/database_fixture.cpp index efdf75f3..532be11e 100644 --- a/tests/common/database_fixture.cpp +++ b/tests/common/database_fixture.cpp @@ -181,7 +181,7 @@ void database_fixture::verify_asset_supplies( const database& db ) total_balances[bad.options.short_backing_asset] += bad.settlement_fund; } } - for( const vesting_balance_object& vbo : db.get_index_type< simple_index >() ) + for( const vesting_balance_object& vbo : db.get_index_type< vesting_balance_index >().indices() ) total_balances[ vbo.balance.asset_id ] += vbo.balance.amount; total_balances[asset_id_type()] += db.get_dynamic_global_properties().witness_budget;