Create genesis with the requested amount (#6384)

This commit is contained in:
Jack May
2019-10-15 22:40:31 -07:00
committed by GitHub
parent 996c8cf2eb
commit a3ccbe02d0

View File

@ -32,9 +32,8 @@ pub fn create_genesis<T: Client>(from_key: &Keypair, client: &T, amount: u64) ->
&from_key.pubkey(), &from_key.pubkey(),
&libra_genesis_key.pubkey(), &libra_genesis_key.pubkey(),
1, 1,
bincode::serialize(&LibraAccountState::create_genesis(1)) bincode::serialized_size(&LibraAccountState::create_genesis(amount).unwrap()).unwrap()
.unwrap() as u64,
.len() as u64,
&solana_move_loader_api::id(), &solana_move_loader_api::id(),
); );
client.send_instruction(&from_key, instruction).unwrap(); client.send_instruction(&from_key, instruction).unwrap();