Skip to content

Commit

Permalink
Remove authority check in deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauthamastro committed Feb 14, 2024
1 parent 4c86683 commit 1620907
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pallets/thea-message-handler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,6 @@ impl<T: Config> Pallet<T> {

impl<T: Config> thea_primitives::TheaOutgoingExecutor for Pallet<T> {
fn execute_withdrawals(network: Network, data: Vec<u8>) -> DispatchResult {
let authorities_len = <Authorities<T>>::get(Self::validator_set_id()).len();
if authorities_len == 0 {
return Err(Error::<T>::ValidatorSetEmpty.into());
}
let nonce = <OutgoingNonce<T>>::get();
let payload = Message {
block_no: frame_system::Pallet::<T>::current_block_number().saturated_into(),
Expand Down

0 comments on commit 1620907

Please sign in to comment.