Create genesis with the requested amount (#6384)
This commit is contained in:
parent
996c8cf2eb
commit
a3ccbe02d0
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue