Skip to content

Commit 43ef893

Browse files
committed
primtives - BalancesMap - impl is_empty()
1 parent ee99167 commit 43ef893

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

primitives/src/balances_map.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ impl BalancesMap {
3939
pub fn insert(&mut self, key: ValidatorId, value: BigNum) -> Option<BigNum> {
4040
self.0.insert(key, value)
4141
}
42+
43+
pub fn is_empty(&self) -> bool {
44+
self.0.is_empty()
45+
}
4246
}
4347

4448
impl FromIterator<(ValidatorId, BigNum)> for BalancesMap {

0 commit comments

Comments
 (0)