mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-08 06:37:23 +00:00
Add test that ensures drain funds to death works (#829)
This commit is contained in:
committed by
Gav Wood
parent
41a6f54c4a
commit
6af61b8649
@@ -83,6 +83,11 @@ pub trait StorageDoubleMap {
|
||||
unhashed::get(&full_key::<Self>(k1, k2)[..])
|
||||
}
|
||||
|
||||
/// Returns `true` if value under the specified keys exists.
|
||||
fn exists(k1: Self::Key1, k2: Self::Key2) -> bool {
|
||||
unhashed::exists(&full_key::<Self>(k1, k2)[..])
|
||||
}
|
||||
|
||||
/// Removes all entries that shares the `k1` as the first key.
|
||||
fn remove_prefix(k1: Self::Key1) {
|
||||
unhashed::kill_prefix(&first_part_of_key::<Self>(k1))
|
||||
|
||||
Reference in New Issue
Block a user