@@ -20,55 +20,10 @@ async fn run_test() {
2020 let ( mut banks, payer, blockhash) = setup ( ) . await ;
2121
2222 let account_to_create = Pubkey :: new_unique ( ) ;
23- let account_to_change = Pubkey :: new_unique ( ) ;
2423
25- // AccountInfo::new(
26- // &account_to_change,
27- // payer.pubkey(),
28- // true,
29- // 0,
30- // data,
31- // owner,
32- // true,
33- // rent_epoch,
34- // );
35- // getminu
36-
37- // create_account(account_to_change., owner, seeds, system_program, payer);
38-
39- // account!()
40- // ToAccount
41-
42- // // Initialize proof.
43- // create_account::<Proof>(
44- // proof_info,
45- // &ore_api::ID,
46- // &[PROOF, signer_info.key.as_ref(), &[args.bump]],
47- // system_program,
48- // payer_info,
49- // )?;
50-
51- // Submit initialize transaction.
52- let ix = check_accounts ( payer. pubkey ( ) , account_to_create, account_to_change) ;
24+ // Submit check_accounts transaction.
25+ let ix = check_accounts ( payer. pubkey ( ) , account_to_create) ;
5326 let tx = Transaction :: new_signed_with_payer ( & [ ix] , Some ( & payer. pubkey ( ) ) , & [ & payer] , blockhash) ;
5427 let res = banks. process_transaction ( tx) . await ;
5528 assert ! ( res. is_ok( ) ) ;
56-
57- // Verify counter was initialized.
58- // let counter_address = counter_pda().0;
59- // let counter_account = banks.get_account(counter_address).await.unwrap().unwrap();
60- // let counter = Counter::try_from_bytes(&counter_account.data).unwrap();
61- // assert_eq!(counter_account.owner, steel_api::ID);
62- // assert_eq!(counter.value, 0);
63-
64- // Submit add transaction.
65- // let ix = add(payer.pubkey(), 42);
66- // let tx = Transaction::new_signed_with_payer(&[ix], Some(&payer.pubkey()), &[&payer], blockhash);
67- // let res = banks.process_transaction(tx).await;
68- // assert!(res.is_ok());
69-
70- // // Verify counter was incremented.
71- // let counter_account = banks.get_account(counter_address).await.unwrap().unwrap();
72- // let counter = Counter::try_from_bytes(&counter_account.data).unwrap();
73- // assert_eq!(counter.value, 42);
7429}
0 commit comments