Skip to content

Commit

Permalink
build: update test payer address
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverNChalk committed Aug 26, 2024
1 parent 9c879a8 commit 2b15930
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/svm-test/src/utils/test_payer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Keypair> = 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)]
Expand Down
8 changes: 4 additions & 4 deletions crates/svm-test/tests/program_integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fn faucet() {
// Assert.
expect![[r#"
TransactionMetadata {
signature: TkYH3gZ16Qy5sXhy4Xu1jU8u5MfVgmeiDhN62FiSaCSewV4D3j7DveN7YhHdAGSKc5D7mU1umyoF5KY951hjTQX,
signature: 3fUbwymETnKUx2ijUcW6VT4FVTm6JM6sAypyfUAzekHUWjP6MoKGma1MG2tmpHVnfbJ3v2aD1WkgcGPmHF4dUSta,
logs: [
"Program 69jHfHKn5N6sw9ZacqFzVVhETGiRkh9LD3q9YrfmAA6v invoke [1]",
"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]",
Expand Down Expand Up @@ -95,7 +95,7 @@ fn faucet() {
expect![[r#"
[
(
5Z6Ay5NEcbg3xhopc522sBCRXQujkTiuDRnHGfQdcnSf,
AKnL4NNf3DGWZJS6cPknBuEGnVsV4A4m5tgebLHaRSZ9,
Account {
lamports: 999995000,
data.len: 0,
Expand All @@ -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,
},
),
(
Expand Down
4 changes: 2 additions & 2 deletions crates/svm-test/tests/program_unit_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -53,7 +53,7 @@ fn memo() {
expect![[r#"
[
(
5Z6Ay5NEcbg3xhopc522sBCRXQujkTiuDRnHGfQdcnSf,
AKnL4NNf3DGWZJS6cPknBuEGnVsV4A4m5tgebLHaRSZ9,
Account {
lamports: 999995000,
data.len: 0,
Expand Down

0 comments on commit 2b15930

Please sign in to comment.