mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 08:07:58 +00:00
Remove some last AccountId32::default() leftovers (#10655)
* Remove some last `AccountId32::default()` leftovers As we removed `Default` of account id, we have overseen some last bits. This pr removes these last bits. * Fix
This commit is contained in:
@@ -990,8 +990,8 @@ where
|
||||
pub struct EnsureMember<AccountId, I: 'static>(PhantomData<(AccountId, I)>);
|
||||
impl<
|
||||
O: Into<Result<RawOrigin<AccountId, I>, O>> + From<RawOrigin<AccountId, I>>,
|
||||
AccountId: Default,
|
||||
I,
|
||||
AccountId: Decode,
|
||||
> EnsureOrigin<O> for EnsureMember<AccountId, I>
|
||||
{
|
||||
type Success = AccountId;
|
||||
@@ -1004,7 +1004,10 @@ impl<
|
||||
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
fn successful_origin() -> O {
|
||||
O::from(RawOrigin::Member(Default::default()))
|
||||
let zero_account_id =
|
||||
AccountId::decode(&mut sp_runtime::traits::TrailingZeroInput::zeroes())
|
||||
.expect("infinite length input; no invalid inputs for type; qed");
|
||||
O::from(RawOrigin::Member(zero_account_id))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user