#328 - fix build error in sidechain_withdraw_transaction_test

This commit is contained in:
Vlad Dobromyslov 2022-03-22 09:52:06 +03:00
parent d39f3f309a
commit 342b0917f3

View file

@ -805,7 +805,6 @@ BOOST_AUTO_TEST_CASE( sidechain_deposit_transaction_test )
BOOST_TEST_MESSAGE("SON sidechain_deposit_transaction_test cli wallet tests begin");
try
{
const sidechain_type type = sidechain_type::bitcoin;
son_test_helper sth(*this);
std::string son_name("sonaccount1");
@ -836,7 +835,8 @@ BOOST_AUTO_TEST_CASE( sidechain_deposit_transaction_test )
con.wallet_api_ptr->transfer(
"nathan", "sonaccount" + fc::to_pretty_string(i), "1000", "1.3.0", "Here are some CORE tokens for your new account", true );
con.wallet_api_ptr->create_vesting_balance("sonaccount" + fc::to_pretty_string(i), "500", "1.3.0", vesting_balance_type::gpos, true);
con.wallet_api_ptr->vote_for_son("sonaccount" + fc::to_pretty_string(i), son_name, type, true, true);
con.wallet_api_ptr->vote_for_son("sonaccount" + fc::to_pretty_string(i), son_name, sidechain_type::bitcoin, true, true);
con.wallet_api_ptr->vote_for_son("sonaccount" + fc::to_pretty_string(i), son_name, sidechain_type::hive, true, true);
}
BOOST_CHECK(generate_maintenance_block());
@ -900,7 +900,8 @@ BOOST_AUTO_TEST_CASE( sidechain_withdraw_transaction_test )
con.wallet_api_ptr->transfer(
"nathan", "sonaccount" + fc::to_pretty_string(i), "1000", "1.3.0", "Here are some CORE tokens for your new account", true );
con.wallet_api_ptr->create_vesting_balance("sonaccount" + fc::to_pretty_string(i), "500", "1.3.0", vesting_balance_type::gpos, true);
con.wallet_api_ptr->vote_for_son("sonaccount" + fc::to_pretty_string(i), name, true, true);
con.wallet_api_ptr->vote_for_son("sonaccount" + fc::to_pretty_string(i), name, sidechain_type::bitcoin, true, true);
con.wallet_api_ptr->vote_for_son("sonaccount" + fc::to_pretty_string(i), name, sidechain_type::hive, true, true);
}
BOOST_CHECK(generate_maintenance_block());