Skip to content

Commit

Permalink
Restrict Court to LLM Staked -> Staked transfers only
Browse files Browse the repository at this point in the history
  • Loading branch information
kacperzuk-neti committed Jul 23, 2024
1 parent b3bd678 commit 0e96933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion substrate/frame/llm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ pub mod pallet {
},
};
let transfer_to = match to {
LLMAccount::Liquid(account) => account,
LLMAccount::Liquid(_) => return Err(Error::<T>::InvalidAccount.into()),
LLMAccount::Locked(account) => {
LLMPolitics::<T>::mutate(account.clone(), |b| *b += amount);
Self::deposit_event(Event::<T>::LLMPoliticsLocked(account, amount));
Expand Down

0 comments on commit 0e96933

Please sign in to comment.