@@ -15,25 +15,26 @@ async function initAccounts(config, optIn = false, newCreator = false) {
1515 // and overrides the current creator account
1616 config . setCreatorAccount ( algosdk . generateAccount ( ) ) ;
1717 }
18+ const { client, openAccount, maliciousAccount, creatorAccount, executorAccount, assetId} = config ;
1819
19- await transferFunds ( config . client , config . openAccount , config . creatorAccount , 2000000 ) ;
2020
21- const { client, openAccount, maliciousAccount , creatorAccount, executorAccount } = config ;
21+ await transferFunds ( client , openAccount , creatorAccount , 2000000 ) ;
2222
2323
24- await transferFunds ( client , openAccount , creatorAccount , 5000000 ) ; // 5 algos
25- await transferFunds ( client , openAccount , executorAccount , 5000000 ) ; // 5 algos
26- await transferASA ( client , creatorAccount , creatorAccount , 0 , config . assetIndex ) ; // opt in transaction
27- await transferASA ( client , openAccount , creatorAccount , 2000000 , config . assetIndex ) ; // 5 algos
2824
29- if ( optIn ) {
30- await transferASA ( client , executorAccount , executorAccount , 0 , config . assetIndex ) ; // opt in transaction
31- await transferASA ( client , openAccount , executorAccount , 2000000 , config . assetIndex ) ; // 5 algos
32- }
25+ // await transferFunds(client, openAccount, creatorAccount, 5000000); // 5 algos
26+ // await transferFunds(client, openAccount, executorAccount, 5000000); // 5 algos
27+ await transferASA ( client , creatorAccount , creatorAccount , 0 , assetId ) ; // opt in transaction
28+ await transferASA ( client , openAccount , creatorAccount , 2000000 , assetId ) ; // 5 algos
29+
30+ // if (optIn) {
31+ // await transferASA(client, executorAccount, executorAccount, 0, config.assetIndex); // opt in transaction
32+ // await transferASA(client, openAccount, executorAccount, 2000000, config.assetIndex); // 5 algos
33+ // }
3334
34- await transferFunds ( client , openAccount , maliciousAccount , 5000000 ) ; // 5 algos
35- await transferASA ( client , maliciousAccount , maliciousAccount , 0 , config . assetIndex ) ; // opt in transaction
36- await transferASA ( client , openAccount , maliciousAccount , 2000000 , config . assetIndex ) ; // 5 algos
35+ // await transferFunds(client, openAccount, maliciousAccount, 5000000); // 5 algos
36+ // await transferASA(client, maliciousAccount, maliciousAccount, 0, config.assetIndex); // opt in transaction
37+ // await transferASA(client, openAccount, maliciousAccount, 2000000, config.assetIndex); // 5 algos
3738}
3839
3940module . exports = initAccounts ;
0 commit comments