From 9df761ca41c72b11548673bf46391040aae37bdd Mon Sep 17 00:00:00 2001 From: Paul-Henry Kajfasz Date: Mon, 16 Sep 2024 17:13:09 +0200 Subject: [PATCH] Self review --- miden-lib/asm/kernels/transaction/lib/account.masm | 2 +- miden-tx/src/testing/tx_context/builder.rs | 2 +- miden-tx/src/tests/kernel_tests/test_asset.rs | 2 -- miden-tx/tests/integration/scripts/swap.rs | 3 --- 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/miden-lib/asm/kernels/transaction/lib/account.masm b/miden-lib/asm/kernels/transaction/lib/account.masm index 13531f2c9..a7851c4ab 100644 --- a/miden-lib/asm/kernels/transaction/lib/account.masm +++ b/miden-lib/asm/kernels/transaction/lib/account.masm @@ -344,7 +344,7 @@ export.apply_storage_offset # => [offset_slot_index] end -#! Validate that all account procedures storage offsets are in bounds. +#! Validates all account procedures storage offsets #! #! Notes: #! - For faucets checks that no storage offset is 0 (preventing reserved storage slot access) diff --git a/miden-tx/src/testing/tx_context/builder.rs b/miden-tx/src/testing/tx_context/builder.rs index e12db5cef..4ed5cf1f9 100644 --- a/miden-tx/src/testing/tx_context/builder.rs +++ b/miden-tx/src/testing/tx_context/builder.rs @@ -98,7 +98,7 @@ impl TransactionContextBuilder { acct_id, nonce, initial_balance, - TransactionKernel::testing_assembler().with_debug_mode(true), + TransactionKernel::testing_assembler(), ); let assembler = TransactionKernel::testing_assembler_with_mock_account(); diff --git a/miden-tx/src/tests/kernel_tests/test_asset.rs b/miden-tx/src/tests/kernel_tests/test_asset.rs index d36b3ae4b..cf193bf8f 100644 --- a/miden-tx/src/tests/kernel_tests/test_asset.rs +++ b/miden-tx/src/tests/kernel_tests/test_asset.rs @@ -32,8 +32,6 @@ fn test_create_fungible_asset_succeeds() { begin exec.prologue::prepare_transaction - debug.stack - # create fungible asset push.{FUNGIBLE_ASSET_AMOUNT} exec.asset::create_fungible_asset diff --git a/miden-tx/tests/integration/scripts/swap.rs b/miden-tx/tests/integration/scripts/swap.rs index a5c98c239..d8c8319f5 100644 --- a/miden-tx/tests/integration/scripts/swap.rs +++ b/miden-tx/tests/integration/scripts/swap.rs @@ -33,9 +33,6 @@ fn prove_swap_script() { let sender_account = chain.add_new_wallet(Auth::BasicAuth, vec![offered_asset]); let target_account = chain.add_existing_wallet(Auth::BasicAuth, vec![requested_asset]); - println!("sender storage: {:?}", sender_account.storage().slots().len()); - println!("target storage: {:?}", target_account.storage().slots().len()); - // Create the note containing the SWAP script let (note, payback_note) = create_swap_note( sender_account.id(),