diff --git a/noir-projects/noir-contracts/contracts/lending_contract/src/main.nr b/noir-projects/noir-contracts/contracts/lending_contract/src/main.nr index d9d965cea05..10c46f41891 100644 --- a/noir-projects/noir-contracts/contracts/lending_contract/src/main.nr +++ b/noir-projects/noir-contracts/contracts/lending_contract/src/main.nr @@ -313,11 +313,8 @@ contract Lending { let collateral = storage.collateral.at(owner).read(); let static_debt = storage.static_debt.at(owner).read(); let asset: Asset = storage.assets.at(0).read(); - let debt = debt_value( - U128::from_integer(static_debt), - U128::from_integer(asset.interest_accumulator), - ) - .to_integer(); + let debt = + debt_value(U128::from_integer(static_debt), asset.interest_accumulator).to_integer(); Position { collateral, static_debt, debt } } diff --git a/noir-projects/noir-contracts/contracts/spam_contract/src/main.nr b/noir-projects/noir-contracts/contracts/spam_contract/src/main.nr index fc84d76a768..ff02f27e03a 100644 --- a/noir-projects/noir-contracts/contracts/spam_contract/src/main.nr +++ b/noir-projects/noir-contracts/contracts/spam_contract/src/main.nr @@ -33,7 +33,7 @@ contract Spam { let amount = U128::from_integer(1); for _ in 0..MAX_NOTE_HASHES_PER_CALL { - storage.balances.at(caller).add(caller, U128::from_integer(amount)).emit( + storage.balances.at(caller).add(caller, amount).emit( encode_and_encrypt_note_unconstrained(&mut context, caller, caller), ); }