Skip to content

Commit

Permalink
fix git
Browse files Browse the repository at this point in the history
  • Loading branch information
flipchan authored Nov 18, 2022
1 parent 074d63c commit a36c83e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions frame/llm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,17 +500,11 @@ pub mod pallet {

// Mint the rest of the tokens into the llm/vault
let vaultac: T::AccountId = Self::get_llm_vault_account();

let money_left: T::Balance = T::TotalSupply::get().try_into().unwrap_or(Default::default());
LLMBalance::<T>::insert::<T::AccountId, T::Balance>(vaultac.clone(), money_left.clone());
pallet_assets::Pallet::<T>::mint_into(assetid.into().clone(), &vaultac, money_left)?;

let money_left: T::Balance =
T::Total_supply::get().try_into().unwrap_or(Default::default());
LLMBalance::<T>::insert::<T::AccountId, T::Balance>(
vaultac.clone(),
money_left.clone(),
);
pallet_assets::Pallet::<T>::mint_into(assetid.into().clone(), &vaultac, money_left);

Self::mint_tokens(assetid, T::PreMintedAmount::get()); // mint the preminted amount
Ok(())
Expand Down

0 comments on commit a36c83e

Please sign in to comment.