@@ -15,9 +15,9 @@ module liquidswap::dao_storage_tests {
1515 use test_pool_owner::test_lp::LP ;
1616 use test_helpers::test_account::create_account;
1717
18- #[test(core = @core_resources , pool_owner = @test_pool_owner )]
19- fun test_register (core: signer , pool_owner: signer ) {
20- genesis::setup (&core );
18+ #[test(pool_owner = @test_pool_owner )]
19+ fun test_register (pool_owner: signer ) {
20+ genesis::setup ();
2121
2222 create_account (&pool_owner);
2323
@@ -28,9 +28,9 @@ module liquidswap::dao_storage_tests {
2828 assert !(y_val == 0 , 1 );
2929 }
3030
31- #[test(core = @core_resources , coin_admin = @test_coin_admin , pool_owner = @test_pool_owner )]
32- fun test_deposit (core: signer , coin_admin: signer , pool_owner: signer ) {
33- genesis::setup (&core );
31+ #[test(coin_admin = @test_coin_admin , pool_owner = @test_pool_owner )]
32+ fun test_deposit (coin_admin: signer , pool_owner: signer ) {
33+ genesis::setup ();
3434
3535 create_account (&coin_admin);
3636 create_account (&pool_owner);
@@ -52,10 +52,10 @@ module liquidswap::dao_storage_tests {
5252 assert !(y_val == 1000000 , 3 );
5353 }
5454
55- #[test(core = @core_resources , coin_admin = @test_coin_admin , pool_owner = @test_pool_owner )]
55+ #[test(coin_admin = @test_coin_admin , pool_owner = @test_pool_owner )]
5656 #[expected_failure(abort_code = 401 )]
57- fun test_deposit_fail_if_not_registered (core: signer , coin_admin: signer , pool_owner: signer ) {
58- genesis::setup (&core );
57+ fun test_deposit_fail_if_not_registered (coin_admin: signer , pool_owner: signer ) {
58+ genesis::setup ();
5959
6060 create_account (&coin_admin);
6161 create_account (&pool_owner);
@@ -69,9 +69,9 @@ module liquidswap::dao_storage_tests {
6969 dao_storage::deposit_for_test <BTC , USDT , LP >(pool_owner_addr, btc_coins, usdt_coins);
7070 }
7171
72- #[test(core = @core_resources , coin_admin = @test_coin_admin , pool_owner = @test_pool_owner , dao_admin_acc = @dao_admin )]
73- fun test_withdraw (core: signer , coin_admin: signer , pool_owner: signer , dao_admin_acc: signer ) {
74- genesis::setup (&core );
72+ #[test(coin_admin = @test_coin_admin , pool_owner = @test_pool_owner , dao_admin_acc = @dao_admin )]
73+ fun test_withdraw (coin_admin: signer , pool_owner: signer , dao_admin_acc: signer ) {
74+ genesis::setup ();
7575
7676 create_account (&coin_admin);
7777 create_account (&pool_owner);
@@ -99,10 +99,10 @@ module liquidswap::dao_storage_tests {
9999 test_coins::burn (&coin_admin, y);
100100 }
101101
102- #[test(core = @core_resources , coin_admin = @test_coin_admin , pool_owner = @test_pool_owner , dao_admin_acc = @dao_admin )]
103- #[expected_failure(abort_code = 65541 )]
104- fun test_withdraw_fail_if_more_deposited (core: signer , coin_admin: signer , pool_owner: signer , dao_admin_acc: signer ) {
105- genesis::setup (&core );
102+ #[test(coin_admin = @test_coin_admin , pool_owner = @test_pool_owner , dao_admin_acc = @dao_admin )]
103+ #[expected_failure(abort_code = 65542 )]
104+ fun test_withdraw_fail_if_more_deposited (coin_admin: signer , pool_owner: signer , dao_admin_acc: signer ) {
105+ genesis::setup ();
106106
107107 create_account (&coin_admin);
108108 create_account (&pool_owner);
@@ -124,10 +124,10 @@ module liquidswap::dao_storage_tests {
124124 test_coins::burn (&coin_admin, y);
125125 }
126126
127- #[test(core = @core_resources , coin_admin = @test_coin_admin , pool_owner = @test_pool_owner , dao_admin_acc = @0x09 )]
127+ #[test(coin_admin = @test_coin_admin , pool_owner = @test_pool_owner , dao_admin_acc = @0x09 )]
128128 #[expected_failure(abort_code = 402 )]
129- fun test_withdraw_fail_if_not_dao_admin (core: signer , coin_admin: signer , pool_owner: signer , dao_admin_acc: signer ) {
130- genesis::setup (&core );
129+ fun test_withdraw_fail_if_not_dao_admin (coin_admin: signer , pool_owner: signer , dao_admin_acc: signer ) {
130+ genesis::setup ();
131131
132132 create_account (&coin_admin);
133133 create_account (&pool_owner);
@@ -149,14 +149,13 @@ module liquidswap::dao_storage_tests {
149149 test_coins::burn (&coin_admin, y);
150150 }
151151
152- #[test(core = @core_resources , coin_admin = @test_coin_admin , pool_owner = @test_pool_owner , dao_admin_acc = @dao_admin )]
152+ #[test(coin_admin = @test_coin_admin , pool_owner = @test_pool_owner , dao_admin_acc = @dao_admin )]
153153 fun test_split_third_of_fees_into_dao_storage_account (
154- core: signer ,
155154 coin_admin: signer ,
156155 pool_owner: signer ,
157156 dao_admin_acc: signer ,
158157 ) {
159- genesis::setup (&core );
158+ genesis::setup ();
160159
161160 create_account (&coin_admin);
162161 create_account (&pool_owner);
0 commit comments