Make default programs static (#9717)

This commit is contained in:
Jack May
2020-04-27 21:05:12 -07:00
committed by GitHub
parent 193dbb1794
commit efad193180
34 changed files with 134 additions and 173 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())
}