--- a/pallets/evm-contract-helpers/src/eth.rs +++ b/pallets/evm-contract-helpers/src/eth.rs @@ -82,18 +82,6 @@ Ok(>::sponsoring_mode(contract_address) != SponsoringModeT::Disabled) } - /// Deprecated - fn toggle_sponsoring( - &mut self, - caller: caller, - contract_address: address, - enabled: bool, - ) -> Result { - >::ensure_owner(contract_address, caller).map_err(dispatch_to_evm::)?; - >::toggle_sponsoring(contract_address, enabled); - Ok(()) - } - fn set_sponsoring_mode( &mut self, caller: caller, --- a/pallets/evm-contract-helpers/src/lib.rs +++ b/pallets/evm-contract-helpers/src/lib.rs @@ -200,17 +200,6 @@ >::remove(contract) } - pub fn toggle_sponsoring(contract: H160, enabled: bool) { - Self::set_sponsoring_mode( - contract, - if enabled { - SponsoringModeT::Allowlisted - } else { - SponsoringModeT::Disabled - }, - ) - } - pub fn set_sponsoring_rate_limit(contract: H160, rate_limit: T::BlockNumber) { >::insert(contract, rate_limit); }