mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-06 11:27:25 +00:00
Rename: primitives/sr-io -> primitives/sp-io (#4328)
* primitives/sr-io -> primitives/io * fix * rename * runtime-io -> sp-io * git mv * fix ci * remove package name * fix * fix * try minimizing diff * try minimizing diff again * try minimizing diff again
This commit is contained in:
committed by
Bastian Köcher
parent
1f84d6d41d
commit
4f2cdb20c1
@@ -99,7 +99,7 @@ fn try_evict_or_and_pay_rent<T: Trait>(
|
||||
if balance < subsistence_threshold {
|
||||
// The contract cannot afford to leave a tombstone, so remove the contract info altogether.
|
||||
<ContractInfoOf<T>>::remove(account);
|
||||
runtime_io::storage::child_storage_kill(&contract.trie_id);
|
||||
sp_io::storage::child_storage_kill(&contract.trie_id);
|
||||
return (RentOutcome::Evicted, None);
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ fn try_evict_or_and_pay_rent<T: Trait>(
|
||||
// threshold, so it leaves a tombstone.
|
||||
|
||||
// Note: this operation is heavy.
|
||||
let child_storage_root = runtime_io::storage::child_root(&contract.trie_id);
|
||||
let child_storage_root = sp_io::storage::child_root(&contract.trie_id);
|
||||
|
||||
let tombstone = <TombstoneContractInfo<T>>::new(
|
||||
&child_storage_root[..],
|
||||
@@ -155,7 +155,7 @@ fn try_evict_or_and_pay_rent<T: Trait>(
|
||||
let tombstone_info = ContractInfo::Tombstone(tombstone);
|
||||
<ContractInfoOf<T>>::insert(account, &tombstone_info);
|
||||
|
||||
runtime_io::storage::child_storage_kill(&contract.trie_id);
|
||||
sp_io::storage::child_storage_kill(&contract.trie_id);
|
||||
|
||||
return (RentOutcome::Evicted, Some(tombstone_info));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user