mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 08:41:07 +00:00
Make Substrate compile with latest nightly (#7381)
* Try to get it compiling * One more * Make stable happy * Make stable even more happy ;) * Update shell.nix
This commit is contained in:
@@ -139,17 +139,17 @@ benchmarks! {
|
||||
suicide {
|
||||
let caller: T::AccountId = whitelisted_caller();
|
||||
let account_info = AccountInfo::<T::Index, T::AccountData> {
|
||||
nonce: 1337.into(),
|
||||
nonce: 1337u32.into(),
|
||||
refcount: 0,
|
||||
data: T::AccountData::default()
|
||||
};
|
||||
frame_system::Account::<T>::insert(&caller, account_info);
|
||||
let new_account_info = System::<T>::account(caller.clone());
|
||||
assert_eq!(new_account_info.nonce, 1337.into());
|
||||
assert_eq!(new_account_info.nonce, 1337u32.into());
|
||||
}: _(RawOrigin::Signed(caller.clone()))
|
||||
verify {
|
||||
let account_info = System::<T>::account(&caller);
|
||||
assert_eq!(account_info.nonce, 0.into());
|
||||
assert_eq!(account_info.nonce, 0u32.into());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ impl<T: SigningTypes, C: AppCrypto<T::Public, T::Signature>, X> Signer<T, C, X>
|
||||
.enumerate()
|
||||
.map(|(index, key)| {
|
||||
let generic_public = C::GenericPublic::from(key);
|
||||
let public = generic_public.into();
|
||||
let public: T::Public = generic_public.into();
|
||||
let account_id = public.clone().into_account();
|
||||
Account::new(index, account_id, public)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user