@@ -869,6 +869,8 @@ BOOST_AUTO_TEST_CASE(custom_auths) { try {
869
869
// }
870
870
// ]
871
871
872
+ wdump ((op));
873
+
872
874
// Alice publishes the custom authority
873
875
trx.clear ();
874
876
trx.operations = {op};
@@ -1705,8 +1707,11 @@ BOOST_AUTO_TEST_CASE(custom_auths) { try {
1705
1707
// Create a UIA
1706
1708
// ////
1707
1709
upgrade_to_lifetime_member (alice);
1708
- const asset_object &alicecoin = create_user_issued_asset (" ALICECOIN" , alice, white_list);
1709
- const asset_object &specialcoin = create_user_issued_asset ( " SPECIALCOIN" , alice, white_list );
1710
+ create_user_issued_asset (" ALICECOIN" , alice, white_list);
1711
+ create_user_issued_asset (" SPECIALCOIN" , alice, white_list);
1712
+ generate_blocks (1 );
1713
+ const asset_object &alicecoin = *db.get_index_type <asset_index>().indices ().get <by_symbol>().find (" ALICECOIN" );
1714
+ const asset_object &specialcoin = *db.get_index_type <asset_index>().indices ().get <by_symbol>().find (" SPECIALCOIN" );
1710
1715
const asset_id_type alicecoin_id = alicecoin.id ;
1711
1716
1712
1717
@@ -1886,8 +1891,11 @@ BOOST_AUTO_TEST_CASE(custom_auths) { try {
1886
1891
// Create user-issued assets
1887
1892
// ////
1888
1893
upgrade_to_lifetime_member (alice);
1889
- const asset_object &alicecoin = create_user_issued_asset (" ALICECOIN" , alice, white_list);
1890
- const asset_object &specialcoin = create_user_issued_asset ( " SPECIALCOIN" , alice, white_list );
1894
+ create_user_issued_asset (" ALICECOIN" , alice, white_list);
1895
+ create_user_issued_asset (" SPECIALCOIN" , alice, white_list);
1896
+ generate_blocks (1 );
1897
+ const asset_object &alicecoin = *db.get_index_type <asset_index>().indices ().get <by_symbol>().find (" ALICECOIN" );
1898
+ const asset_object &specialcoin = *db.get_index_type <asset_index>().indices ().get <by_symbol>().find (" SPECIALCOIN" );
1891
1899
const asset_id_type alicecoin_id = alicecoin.id ;
1892
1900
1893
1901
@@ -3142,7 +3150,9 @@ BOOST_AUTO_TEST_CASE(custom_auths) { try {
3142
3150
// Create user-issued assets
3143
3151
// ////
3144
3152
upgrade_to_lifetime_member (alice);
3145
- const asset_object &alicecoin = create_bitasset (" ALICECOIN" , alice.get_id ());
3153
+ create_bitasset (" ALICECOIN" , alice.get_id ());
3154
+ generate_blocks (1 );
3155
+ const asset_object &alicecoin = *db.get_index_type <asset_index>().indices ().get <by_symbol>().find (" ALICECOIN" );
3146
3156
3147
3157
3148
3158
// ////
@@ -3337,7 +3347,9 @@ BOOST_AUTO_TEST_CASE(custom_auths) { try {
3337
3347
// Create user-issued assets
3338
3348
// ////
3339
3349
upgrade_to_lifetime_member (alice);
3340
- const asset_object &alicecoin = create_bitasset (" ALICECOIN" , alice.get_id ());
3350
+ create_bitasset (" ALICECOIN" , alice.get_id ());
3351
+ generate_blocks (1 );
3352
+ const asset_object &alicecoin = *db.get_index_type <asset_index>().indices ().get <by_symbol>().find (" ALICECOIN" );
3341
3353
3342
3354
3343
3355
// ////
@@ -3832,14 +3844,9 @@ BOOST_AUTO_TEST_CASE(custom_auths) { try {
3832
3844
3833
3845
3834
3846
// ////
3835
- // Advance the blockchain to get the finalized CAA and HTLC IDs
3847
+ // Advance the blockchain to get the finalized HTLC ID
3836
3848
// ////
3837
3849
generate_blocks (1 );
3838
-
3839
- auto caa =
3840
- db.get_index_type <custom_authority_index>().indices ().get <by_account_custom>().find (alice.get_id ());
3841
- custom_authority_id_type caa_id = caa->id ;
3842
-
3843
3850
graphene::chain::htlc_id_type alice_htlc_id =
3844
3851
db.get_index_type <htlc_index>().indices ().get <by_from_id>().find (alice.get_id ())->id ;
3845
3852
@@ -3899,9 +3906,11 @@ BOOST_AUTO_TEST_CASE(custom_auths) { try {
3899
3906
3900
3907
3901
3908
// ////
3902
- // Advance the blockchain to generate distinctive hash IDs for the similar transactions
3909
+ // Advance the blockchain to get the finalized CAA ID
3903
3910
// ////
3904
3911
generate_blocks (1 );
3912
+ auto caa = db.get_index_type <custom_authority_index>().indices ().get <by_account_custom>().find (gateway.get_id ());
3913
+ custom_authority_id_type caa_id = caa->id ;
3905
3914
3906
3915
3907
3916
// ////
0 commit comments