Skip to content

Commit

Permalink
feat: increment storages on registration (#61)
Browse files Browse the repository at this point in the history
Closes CHAIN-42
  • Loading branch information
devwckd authored Jan 8, 2025
1 parent 6adcf7c commit b115cb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pallets/torus0/src/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ pub fn register<T: crate::Config>(
},
);

crate::RegistrationsThisBlock::<T>::mutate(|value| value.saturating_add(1));
crate::RegistrationsThisInterval::<T>::mutate(|value| value.saturating_add(1));

crate::Pallet::<T>::deposit_event(crate::Event::<T>::AgentRegistered(agent_key));

Ok(())
Expand Down

0 comments on commit b115cb1

Please sign in to comment.