From 2b15930e44d26a27e6f625c69f9bd93f7a408268 Mon Sep 17 00:00:00 2001 From: OliverNChalk <11343499+OliverNChalk@users.noreply.github.com> Date: Sun, 25 Aug 2024 20:55:36 -0500 Subject: [PATCH] build: update test payer address --- Cargo.lock | 1 - crates/svm-test/src/utils/test_payer.rs | 4 ++-- crates/svm-test/tests/program_integration_test.rs | 8 ++++---- crates/svm-test/tests/program_unit_test.rs | 4 ++-- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 333f1a7..e55aeb7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4512,7 +4512,6 @@ dependencies = [ "solana-account-decoder", "solana-client", "solana-logger", - "solana-program", "solana-sdk", "spl-associated-token-account 3.0.4", "spl-token", diff --git a/crates/svm-test/src/utils/test_payer.rs b/crates/svm-test/src/utils/test_payer.rs index 59bdd18..a2d9dd5 100644 --- a/crates/svm-test/src/utils/test_payer.rs +++ b/crates/svm-test/src/utils/test_payer.rs @@ -5,10 +5,10 @@ use solana_sdk::pubkey::Pubkey; use solana_sdk::signature::Keypair; use solana_sdk::signer::SeedDerivable; -pub const TEST_PAYER: Pubkey = pubkey!("5Z6Ay5NEcbg3xhopc522sBCRXQujkTiuDRnHGfQdcnSf"); +pub const TEST_PAYER: Pubkey = pubkey!("AKnL4NNf3DGWZJS6cPknBuEGnVsV4A4m5tgebLHaRSZ9"); static TEST_PAYER_KEYPAIR: OnceLock = OnceLock::new(); pub fn test_payer_keypair() -> &'static Keypair { - TEST_PAYER_KEYPAIR.get_or_init(|| Keypair::from_seed(&[10; 32]).unwrap()) + TEST_PAYER_KEYPAIR.get_or_init(|| Keypair::from_seed(&[1; 32]).unwrap()) } #[cfg(test)] diff --git a/crates/svm-test/tests/program_integration_test.rs b/crates/svm-test/tests/program_integration_test.rs index 95b7a76..40e9c60 100644 --- a/crates/svm-test/tests/program_integration_test.rs +++ b/crates/svm-test/tests/program_integration_test.rs @@ -49,7 +49,7 @@ fn faucet() { // Assert. expect![[r#" TransactionMetadata { - signature: TkYH3gZ16Qy5sXhy4Xu1jU8u5MfVgmeiDhN62FiSaCSewV4D3j7DveN7YhHdAGSKc5D7mU1umyoF5KY951hjTQX, + signature: 3fUbwymETnKUx2ijUcW6VT4FVTm6JM6sAypyfUAzekHUWjP6MoKGma1MG2tmpHVnfbJ3v2aD1WkgcGPmHF4dUSta, logs: [ "Program 69jHfHKn5N6sw9ZacqFzVVhETGiRkh9LD3q9YrfmAA6v invoke [1]", "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]", @@ -95,7 +95,7 @@ fn faucet() { expect![[r#" [ ( - 5Z6Ay5NEcbg3xhopc522sBCRXQujkTiuDRnHGfQdcnSf, + AKnL4NNf3DGWZJS6cPknBuEGnVsV4A4m5tgebLHaRSZ9, Account { lamports: 999995000, data.len: 0, @@ -105,14 +105,14 @@ fn faucet() { }, ), ( - 5vUprZVMWkZgRdVKoEFp5fJHdeWvGXJQrGErFNwAysL4, + 3wvJdyFnGvaMWpbq93NU91SggiVRveULUXL6iX5VZDGP, Account { lamports: 2039280, data.len: 165, owner: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA, executable: false, rent_epoch: 0, - data: c6fa7af3bedbad3a3d65f36aabc97431b1bbe4c2d2f6e0e47ca60203452f5d6143a72e714401762df66b68c26dfbdf2682aaec9f2474eca4613e424a0fbafd3c, + data: c6fa7af3bedbad3a3d65f36aabc97431b1bbe4c2d2f6e0e47ca60203452f5d618a88e3dd7409f195fd52db2d3cba5d72ca6709bf1d94121bf3748801b40f6f5c, }, ), ( diff --git a/crates/svm-test/tests/program_unit_test.rs b/crates/svm-test/tests/program_unit_test.rs index c8938a0..a5cf9f3 100644 --- a/crates/svm-test/tests/program_unit_test.rs +++ b/crates/svm-test/tests/program_unit_test.rs @@ -34,7 +34,7 @@ fn memo() { // Assert. expect![[r#" TransactionMetadata { - signature: g7Cd7AET73a2vCsjgaoP49tTwvNJ1Hxqih3NFvG5mHZvWY9rMfr4s11GStNaWAdHJkFEKLdqDh88bVZiEtHRBFP, + signature: 32qrmjZC3XfzvagJHVozcNWnjW24uBrcdGmUP5r31LstZM3nAsH7cENbuWzW29dyQWLoCTBjBYV6xNrPKS7FJPsG, logs: [ "Program 4vJ9JU1bJJE96FWSJKvHsmmFADCg4gpZQff4P3bkLKi invoke [1]", "Program 4vJ9JU1bJJE96FWSJKvHsmmFADCg4gpZQff4P3bkLKi consumed 36 of 200000 compute units", @@ -53,7 +53,7 @@ fn memo() { expect![[r#" [ ( - 5Z6Ay5NEcbg3xhopc522sBCRXQujkTiuDRnHGfQdcnSf, + AKnL4NNf3DGWZJS6cPknBuEGnVsV4A4m5tgebLHaRSZ9, Account { lamports: 999995000, data.len: 0,