You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let uri = str_to_bytes::<64>("https://raw.githubusercontent.com/solana-developers/program-examples/new-examples/tokens/tokens/.assets/spl-token.json");
28
+
29
+
// Submit create transaction.
30
+
let ix = create(payer.pubkey(), payer.pubkey(), name, symbol, uri);
24
31
let tx = Transaction::new_signed_with_payer(&[ix],Some(&payer.pubkey()),&[&payer], blockhash);
25
32
let res = banks.process_transaction(tx).await;
26
33
assert!(res.is_ok());
27
34
28
-
// Verify counter was initialized.
29
-
let counter_address = counter_pda().0;
30
-
let counter_account = banks.get_account(counter_address).await.unwrap().unwrap();
31
-
let counter = Counter::try_from_bytes(&counter_account.data).unwrap();
0 commit comments