Make default programs static (bp #9717) (#9814)

automerge
This commit is contained in:
mergify[bot]
2020-04-30 02:50:34 -07:00
committed by GitHub
parent 8fef8eaed9
commit 892abd2a24
38 changed files with 178 additions and 177 deletions

View File

@@ -13,7 +13,7 @@ use crate::{
rent::Rent,
shred_version::compute_shred_version,
signature::{Keypair, Signer},
system_program::{self, solana_system_program},
system_program,
};
use bincode::{deserialize, serialize};
use chrono::{TimeZone, Utc};
@@ -72,7 +72,7 @@ pub fn create_genesis_config(lamports: u64) -> (GenesisConfig, Keypair) {
faucet_keypair.pubkey(),
Account::new(lamports, 0, &system_program::id()),
)],
&[solana_system_program()],
&[],
),
faucet_keypair,
)

View File

@@ -1,5 +1 @@
crate::declare_id!("11111111111111111111111111111111");
pub fn solana_system_program() -> (String, crate::pubkey::Pubkey) {
("solana_system_program".to_string(), id())
}