Skip to content

Commit 08540e2

Browse files
authored
p-token: Add scripts (#27)
* Update workspace * Rename interface crate * Add readme * Update cargo lock * Update workspace * Fix spelling * Fix clippy warning * Fix p-token binary name * Add p-token scripts
1 parent 52ee7f2 commit 08540e2

24 files changed

+26
-24
lines changed

interface/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ This will add the `spl-token-interface` dependency to your `Cargo.toml` file.
2222

2323
## Documentation
2424

25-
Read more about the SPL Token program on the crate [documentation](https://docs.rs/spl-token-interface).
25+
Read more about the SPL Token interface on the crate [documentation](https://docs.rs/spl-token-interface).

p-token/tests/amount_to_ui_amount.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use solana_sdk::{pubkey::Pubkey, signature::Signer, transaction::Transaction};
99
#[test_case::test_case(TOKEN_PROGRAM_ID ; "p-token")]
1010
#[tokio::test]
1111
async fn amount_to_ui_amount(token_program: Pubkey) {
12-
let mut context = ProgramTest::new("token_program", TOKEN_PROGRAM_ID, None)
12+
let mut context = ProgramTest::new("pinocchio_token_program", TOKEN_PROGRAM_ID, None)
1313
.start_with_context()
1414
.await;
1515

p-token/tests/approve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use solana_sdk::{
1414
#[test_case::test_case(TOKEN_PROGRAM_ID ; "p-token")]
1515
#[tokio::test]
1616
async fn approve(token_program: Pubkey) {
17-
let mut context = ProgramTest::new("token_program", TOKEN_PROGRAM_ID, None)
17+
let mut context = ProgramTest::new("pinocchio_token_program", TOKEN_PROGRAM_ID, None)
1818
.start_with_context()
1919
.await;
2020

p-token/tests/approve_checked.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use solana_sdk::{
1414
#[test_case::test_case(TOKEN_PROGRAM_ID ; "p-token")]
1515
#[tokio::test]
1616
async fn approve_checked(token_program: Pubkey) {
17-
let mut context = ProgramTest::new("token_program", TOKEN_PROGRAM_ID, None)
17+
let mut context = ProgramTest::new("pinocchio_token_program", TOKEN_PROGRAM_ID, None)
1818
.start_with_context()
1919
.await;
2020

p-token/tests/burn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use solana_sdk::{
1414
#[test_case::test_case(TOKEN_PROGRAM_ID ; "p-token")]
1515
#[tokio::test]
1616
async fn burn(token_program: Pubkey) {
17-
let mut context = ProgramTest::new("token_program", TOKEN_PROGRAM_ID, None)
17+
let mut context = ProgramTest::new("pinocchio_token_program", TOKEN_PROGRAM_ID, None)
1818
.start_with_context()
1919
.await;
2020

p-token/tests/burn_checked.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use solana_sdk::{
1414
#[test_case::test_case(TOKEN_PROGRAM_ID ; "p-token")]
1515
#[tokio::test]
1616
async fn burn_checked(token_program: Pubkey) {
17-
let mut context = ProgramTest::new("token_program", TOKEN_PROGRAM_ID, None)
17+
let mut context = ProgramTest::new("pinocchio_token_program", TOKEN_PROGRAM_ID, None)
1818
.start_with_context()
1919
.await;
2020

p-token/tests/close_account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use solana_sdk::{
1313
#[test_case::test_case(TOKEN_PROGRAM_ID ; "p-token")]
1414
#[tokio::test]
1515
async fn close_account(token_program: Pubkey) {
16-
let mut context = ProgramTest::new("token_program", TOKEN_PROGRAM_ID, None)
16+
let mut context = ProgramTest::new("pinocchio_token_program", TOKEN_PROGRAM_ID, None)
1717
.start_with_context()
1818
.await;
1919

p-token/tests/freeze_account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use spl_token::state::AccountState;
1515
#[test_case::test_case(TOKEN_PROGRAM_ID ; "p-token")]
1616
#[tokio::test]
1717
async fn freeze_account(token_program: Pubkey) {
18-
let mut context = ProgramTest::new("token_program", TOKEN_PROGRAM_ID, None)
18+
let mut context = ProgramTest::new("pinocchio_token_program", TOKEN_PROGRAM_ID, None)
1919
.start_with_context()
2020
.await;
2121

p-token/tests/initialize_account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use solana_sdk::{
1515
#[test_case::test_case(TOKEN_PROGRAM_ID ; "p-token")]
1616
#[tokio::test]
1717
async fn initialize_account(token_program: Pubkey) {
18-
let mut context = ProgramTest::new("token_program", TOKEN_PROGRAM_ID, None)
18+
let mut context = ProgramTest::new("pinocchio_token_program", TOKEN_PROGRAM_ID, None)
1919
.start_with_context()
2020
.await;
2121

p-token/tests/initialize_account2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use solana_sdk::{
1515
#[test_case::test_case(TOKEN_PROGRAM_ID ; "p-token")]
1616
#[tokio::test]
1717
async fn initialize_account2(token_program: Pubkey) {
18-
let mut context = ProgramTest::new("token_program", TOKEN_PROGRAM_ID, None)
18+
let mut context = ProgramTest::new("pinocchio_token_program", TOKEN_PROGRAM_ID, None)
1919
.start_with_context()
2020
.await;
2121

0 commit comments

Comments
 (0)