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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

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