fix: handle token balances on add_contract_changes (#181)
This commit is contained in:
@@ -52,6 +52,9 @@ impl TransactionChangesBuilder {
|
|||||||
if !change.code.is_empty() {
|
if !change.code.is_empty() {
|
||||||
c.set_code(&change.code)
|
c.set_code(&change.code)
|
||||||
}
|
}
|
||||||
|
if !change.token_balances.is_empty() {
|
||||||
|
c.upsert_token_balances(&change.token_balances)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.or_insert_with(|| {
|
.or_insert_with(|| {
|
||||||
let mut c = InterimContractChange::new(
|
let mut c = InterimContractChange::new(
|
||||||
@@ -61,6 +64,7 @@ impl TransactionChangesBuilder {
|
|||||||
c.upsert_slots(&change.slots);
|
c.upsert_slots(&change.slots);
|
||||||
c.set_code(&change.code);
|
c.set_code(&change.code);
|
||||||
c.set_balance(&change.balance);
|
c.set_balance(&change.balance);
|
||||||
|
c.upsert_token_balances(&change.token_balances);
|
||||||
c
|
c
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user