Fix
fix for executor
@@ -581,8 +581,7 @@ impl Contract {
}
let mut balance_other = vec!();
- ton_types::HashmapType::iterate(
- &acc.get_balance().unwrap().other,
+ &acc.get_balance().unwrap().other.iterate_slices_with_keys(
&mut |ref mut key, ref mut value| -> Result<bool> {
let value: ton_block::VarUInteger32 = ton_block::VarUInteger32::construct_from(value)?;
balance_other.push(OtherCurrencyValue {
@@ -592,8 +591,7 @@ impl Contract {
)?
});
Ok(true)
- }
- ).unwrap();
+ }).unwrap();
// All unwraps below won't panic because the account is checked for none.
Ok(Contract {
@@ -943,7 +941,7 @@ impl Contract {
};
let storage = AccountStorage {
last_trans_lt: 0,
- balance: CurrencyCollection { grams: self.balance.into(), other: self.balance_other_as_hashmape()? },
+ balance: CurrencyCollection { grams: self.balance.into(), other: self.balance_other_as_hashmape()?.into() },
state
};
Ok(Account::with_storage(
