mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 21:41:12 +00:00
* rename StorageMap::exists(key) to ::contains_key(key) * bump impl_version
This commit is contained in:
@@ -137,7 +137,7 @@ impl<T: Trait> AccountDb<T> for DirectAccountDb {
|
||||
<ContractInfoOf<T>>::get(account).and_then(|i| i.as_alive().map(|i| i.rent_allowance))
|
||||
}
|
||||
fn contract_exists(&self, account: &T::AccountId) -> bool {
|
||||
<ContractInfoOf<T>>::exists(account)
|
||||
<ContractInfoOf<T>>::contains_key(account)
|
||||
}
|
||||
fn get_balance(&self, account: &T::AccountId) -> BalanceOf<T> {
|
||||
T::Currency::free_balance(account)
|
||||
|
||||
@@ -460,7 +460,7 @@ fn instantiate_and_call_and_deposit_event() {
|
||||
]);
|
||||
|
||||
assert_ok!(creation);
|
||||
assert!(ContractInfoOf::<Test>::exists(BOB));
|
||||
assert!(ContractInfoOf::<Test>::contains_key(BOB));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user