Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: test cases are throwing errors #253

Open
L0GYKAL opened this issue Jun 30, 2024 · 1 comment
Open

bug: test cases are throwing errors #253

L0GYKAL opened this issue Jun 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@L0GYKAL
Copy link

L0GYKAL commented Jun 30, 2024

SNOS version:
8d6ae34

Current behavior:

contracts: 9
deprecated_compiled_classes: 3
contracts to class_hash
	1073743616 -> 2847229557799212240700619257444410593768590640938595411219122975663286400357
	1073743872 -> 2553874082637258309275750418379019378586603706497644242041372159420778949015
	4098 -> 2553874082637258309275750418379019378586603706497644242041372159420778949015
	1073742336 -> 3043522133089536593636086481152606703984151542874851197328605892177919922063
	3221225984 -> 2147484160
	0 -> 0
	1 -> 0
	4097 -> 2553874082637258309275750418379019378586603706497644242041372159420778949015
	3221227264 -> 2147485440
deprecated classes
	3043522133089536593636086481152606703984151542874851197328605892177919922063
	2553874082637258309275750418379019378586603706497644242041372159420778949015
	2847229557799212240700619257444410593768590640938595411219122975663286400357
classes
	354573111547370173281606292268396466744750568787097671151101592218871604240
	2727614656258441159026923259595127050847510357821768791850652891053949804532
class_hash to compiled_class_hash
	2147485440 -> 2727614656258441159026923259595127050847510357821768791850652891053949804532
	2147484160 -> 354573111547370173281606292268396466744750568787097671151101592218871604240
deprecated_fee_token_address: 0x0000000000000000000000000000000000000000000000000000000000001001
fee_token_address: 0x0000000000000000000000000000000000000000000000000000000000001002
writing block number: 1990 -> block hash: 66
executing INVOKE_FUNCTION on: 3221225984
about to call contract_address: 3221225984, class_hash: 2147484160, is_deprecated: 0
entering syscall: GetExecutionInfo execution
entering syscall: CallContract execution
about to call contract_address: 3221227264, class_hash: 2147485440, is_deprecated: 0
entering syscall: StorageWrite execution
entering syscall: StorageRead execution
about to call contract_address: 4097, class_hash: 2553874082637258309275750418379019378586603706497644242041372159420778949015, is_deprecated: 1
get_caller_address() syscall, syscall_ptr = 122:0, caller_address = 3221225984
emit_event (TODO): 122:26
traceback:
Cairo traceback (most recent call last):
cairo-lang/src/starkware/starknet/core/os/os.cairo:102:59: (pc=0:10625)
    let (squashed_os_state_update, state_update_output) = state_update{hash_ptr=pedersen_ptr}(
                                                          ^**********************************^
/home/l0gykal/Documents/Notes/MA2/Semester_Project/snos/cairo-lang/src/starkware/starknet/core/os/state/state.cairo:56:45: (pc=0:4308)
    let contract_state_tree_update_output = compute_contract_state_commitment(
                                            ^********************************^
/home/l0gykal/Documents/Notes/MA2/Semester_Project/snos/cairo-lang/src/starkware/starknet/core/os/state/commitment.cairo:90:5: (pc=0:3912)
    compute_contract_state_commitment_inner(
    ^**************************************^
/home/l0gykal/Documents/Notes/MA2/Semester_Project/snos/cairo-lang/src/starkware/starknet/core/os/state/commitment.cairo:147:12: (pc=0:3949)
    return compute_contract_state_commitment_inner(
           ^**************************************^
/home/l0gykal/Documents/Notes/MA2/Semester_Project/snos/cairo-lang/src/starkware/starknet/core/os/state/commitment.cairo:147:12: (pc=0:3949)
    return compute_contract_state_commitment_inner(
           ^**************************************^
/home/l0gykal/Documents/Notes/MA2/Semester_Project/snos/cairo-lang/src/starkware/starknet/core/os/state/commitment.cairo:139:5: (pc=0:3940)
    hash_contract_state_changes(
    ^**************************^

died at: /home/l0gykal/Documents/Notes/MA2/Semester_Project/snos/cairo-lang/src/starkware/starknet/core/os/state/commitment.cairo:172
inst_location:
Location { end_line: 181, end_col: 7, input_file: InputFile { filename: "/home/l0gykal/Documents/Notes/MA2/Semester_Project/snos/cairo-lang/src/starkware/starknet/core/os/state/commitment.cairo" }, parent_location: None, start_line: 172, start_col: 5 }
exception:
Err(
    Runner(
        VmException(
            VmException {
                pc: Relocatable {
                    segment_index: 0,
                    offset: 3954,
                },
                inst_location: Some(
                    Location {
                        end_line: 181,
                        end_col: 7,
                        input_file: InputFile {
                            filename: "/home/l0gykal/Documents/Notes/MA2/Semester_Project/snos/cairo-lang/src/starkware/starknet/core/os/state/commitment.cairo",
                        },
                        parent_location: None,
                        start_line: 172,
                        start_col: 5,
                    },
                ),
                inner_exc: Hint(
                    (
                        0,
                        CustomHint(
                            "Could not find commitment info for contract 3221225984",
                        ),
                    ),
                ),
                error_attr_value: None,
                traceback: Some(
                    "Cairo traceback (most recent call last):\ncairo-lang/src/starkware/starknet/core/os/os.cairo:102:59: (pc=0:10625)\n    let (squashed_os_state_update, state_update_output) = state_update{hash_ptr=pedersen_ptr}(\n                                                          ^**********************************^\n/home/l0gykal/Documents/Notes/MA2/Semester_Project/snos/cairo-lang/src/starkware/starknet/core/os/state/state.cairo:56:45: (pc=0:4308)\n    let contract_state_tree_update_output = compute_contract_state_commitment(\n                                            ^********************************^\n/home/l0gykal/Documents/Notes/MA2/Semester_Project/snos/cairo-lang/src/starkware/starknet/core/os/state/commitment.cairo:90:5: (pc=0:3912)\n    compute_contract_state_commitment_inner(\n    ^**************************************^\n/home/l0gykal/Documents/Notes/MA2/Semester_Project/snos/cairo-lang/src/starkware/starknet/core/os/state/commitment.cairo:147:12: (pc=0:3949)\n    return compute_contract_state_commitment_inner(\n           ^**************************************^\n/home/l0gykal/Documents/Notes/MA2/Semester_Project/snos/cairo-lang/src/starkware/starknet/core/os/state/commitment.cairo:147:12: (pc=0:3949)\n    return compute_contract_state_commitment_inner(\n           ^**************************************^\n/home/l0gykal/Documents/Notes/MA2/Semester_Project/snos/cairo-lang/src/starkware/starknet/core/os/state/commitment.cairo:139:5: (pc=0:3940)\n    hash_contract_state_changes(\n    ^**************************^\n",
                ),
            },
        ),
    ),
)

The result should not be None
thread 'os::deploy_accounts_test' panicked at tests/integration/os.rs:291:5:
The result should not be None
stack backtrace:
   0: rust_begin_unwind
             at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:647:5
   1: core::panicking::panic_fmt
             at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/panicking.rs:72:14
   2: integration::os::deploy_accounts_test::deploy_accounts_test
             at ./tests/integration/os.rs:291:5
   3: integration::os::deploy_accounts_test
             at ./tests/integration/os.rs:204:1
   4: integration::os::deploy_accounts_test::{{closure}}
             at ./tests/integration/os.rs:204:10

Expected behavior:
I suppose that the test should pass

Steps to reproduce:
Run the test.

Related code:

#[rstest]
fn read_write_test(block_context: BlockContext, initial_state: InitialState, max_fee: Fee) {
   let tx_version = TransactionVersion::ZERO;
   let cairo_version = CairoVersion::Cairo1;
   let mut nonce_manager = NonceManager::default();

   // Create the initial state:
   let InitialState {
       mut state,
       test_contract_cairo1_address: test_contract1,
       account_without_validations_cairo1_address: sender_address,
       ..
   } = initial_state;

    // test_deploy
    let test_contract_class_hash = FeatureContract::TestContract(CairoVersion::Cairo1).get_class_hash().0;
 
    /////////////////////// Trying to change the state:
    let test_storage_read_write_tx = test_utils::account_invoke_tx(invoke_tx_args! {
        max_fee,
        sender_address: sender_address,
        calldata: create_calldata(test_contract1, "test_storage_read_write", &[StarkFelt::TWO, StarkFelt::ONE]),
        version: tx_version,
        nonce: nonce_manager.next(sender_address),
    });

    let txs = vec![
        test_storage_read_write_tx,
    ];

   let r = execute_txs_and_run_os(state, block_context, txs);

    assert!(r.is_ok(), "The result should not be None");
}
@L0GYKAL L0GYKAL added the bug Something isn't working label Jun 30, 2024
@L0GYKAL L0GYKAL changed the title bug: bug: test cases are throwing errors Jun 30, 2024
@L0GYKAL
Copy link
Author

L0GYKAL commented Jul 8, 2024

Here is the error with the full backtrace:

RUST_BACKTRACE=full cargo test mint_tokens_test                    101 ✘  26s  
    Finished test [unoptimized + debuginfo] target(s) in 0.53s
     Running unittests src/lib.rs (target/debug/deps/snos-95b4a872655f8c76)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 78 filtered out; finished in 0.00s

     Running tests/integration/main.rs (target/debug/deps/integration-8c7af95daf3681d4)

running 1 test
test os::mint_tokens_test ... FAILED

failures:

---- os::mint_tokens_test stdout ----
[DEBUG integration::common::blockifier_contracts] Getting contract at "blockifier_contracts/feature_contracts/cairo1/compiled/account_with_dummy_validate.sierra"
[DEBUG integration::common::blockifier_contracts] Getting contract at "blockifier_contracts/feature_contracts/cairo1/compiled/test_contract.sierra"
[DEBUG integration::common::blockifier_contracts] Getting contract at "blockifier_contracts/feature_contracts/cairo1/compiled/erc20_cairo_erc_20.contract_class.sierra"
[DEBUG integration::common::state] Inserting deprecated class_hash_to_class: ContractAddress(PatriciaKey(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000001002"))) -> ClassHash(StarkFelt("0x013dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51"))
[DEBUG integration::common::state] Inserting deprecated class_hash_to_class: ContractAddress(PatriciaKey(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000001001"))) -> ClassHash(StarkFelt("0x013dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51"))
[DEBUG integration::common::state] Inserting class_hash_to_class: ContractAddress(PatriciaKey(StarkFelt("0x00000000000000000000000000000000000000000000000000000000cc0d694a"))) -> ClassHash(StarkFelt("0x06128266eceeccff0efd8ae39ff7a7e84e5de2c3c2e8f0b9242f6671a5195607"))
[DEBUG integration::common::state] Inserting class_hash_to_class: ContractAddress(PatriciaKey(StarkFelt("0x00000000000000000000000000000000000000000000000000000000d3301861"))) -> ClassHash(StarkFelt("0x01836b5f6042acced412b2f19e19dbfb1b076d2b79a260a824363a4c83492fed"))
[DEBUG integration::common::state] Inserting class_hash_to_class: ContractAddress(PatriciaKey(StarkFelt("0x00000000000000000000000000000000000000000000000000000000f9681a64"))) -> ClassHash(StarkFelt("0x008a559d351aa135d3792bf805ed31fb0d35ac84b103f5ab9645cf4049907538"))
[DEBUG snos::starknet::business_logic::fact_state::state] Updating contract state tree with 5 modifications...
[DEBUG snos::starknet::business_logic::fact_state::state] Updating contract class tree with 4 modifications...
[DEBUG blockifier::transaction::transactions] Executing Transaction...
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_storage_at ContractAddress(PatriciaKey(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000001001"))) / StorageKey(PatriciaKey(StarkFelt("0x027e66af6f5df3e043d32367d68ece7e13645cca1ca9f80dfdaff9013fddf0c5")))
[DEBUG snos::starknet::business_logic::fact_state::state]        -> Ok(StarkFelt("0x0000000000000000000000000000000000000000000000000de0b6b3a7640000"))
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_storage_at ContractAddress(PatriciaKey(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000001001"))) / StorageKey(PatriciaKey(StarkFelt("0x027e66af6f5df3e043d32367d68ece7e13645cca1ca9f80dfdaff9013fddf0c6")))
[DEBUG snos::starknet::business_logic::fact_state::state]        -> Ok(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000000000"))
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_class_hash_at ContractAddress(PatriciaKey(StarkFelt("0x00000000000000000000000000000000000000000000000000000000d3301861")))
[DEBUG snos::starknet::business_logic::fact_state::state]        -> FieldElement { inner: 0x01836b5f6042acced412b2f19e19dbfb1b076d2b79a260a824363a4c83492fed }
[DEBUG snos::starknet::business_logic::fact_state::state] class_hash_as_index: 684510872260683222188647886642195438317121207318810807337017151904723578861
[DEBUG snos::starknet::business_logic::fact_state::state] have contract_class_tree? true
[DEBUG snos::starknet::business_logic::fact_state::state] Should get something from get_leaf()...
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value 1836b5f6042acced412b2f19e19dbfb1b076d2b79a260a824363a4c83492fed
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_compiled_contract_class CompiledClassHash(StarkFelt("0x0135808a4578bddffef930cab54299c2f08034314b559794694aba16054e40e7"))
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_class_hash_at ContractAddress(PatriciaKey(StarkFelt("0x00000000000000000000000000000000000000000000000000000000f9681a64")))
[DEBUG snos::starknet::business_logic::fact_state::state]        -> FieldElement { inner: 0x008a559d351aa135d3792bf805ed31fb0d35ac84b103f5ab9645cf4049907538 }
[DEBUG snos::starknet::business_logic::fact_state::state] class_hash_as_index: 244415781683027271007822073451593921893505158640452141330881486431108232504
[DEBUG snos::starknet::business_logic::fact_state::state] have contract_class_tree? true
[DEBUG snos::starknet::business_logic::fact_state::state] Should get something from get_leaf()...
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value 8a559d351aa135d3792bf805ed31fb0d35ac84b103f5ab9645cf4049907538
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_compiled_contract_class CompiledClassHash(StarkFelt("0x05b3ee60fe8d06dbb20d1c03390e020e8cae77d76ed78b8b472d48b4fc857c04"))
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_storage_at ContractAddress(PatriciaKey(StarkFelt("0x00000000000000000000000000000000000000000000000000000000f9681a64"))) / StorageKey(PatriciaKey(StarkFelt("0x0361458367e696363fbcc70777d07ebbd2394e89fd0adcaf147faccd1d294d60")))
[DEBUG snos::starknet::business_logic::fact_state::state]        -> Ok(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000000000"))
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_storage_at ContractAddress(PatriciaKey(StarkFelt("0x00000000000000000000000000000000000000000000000000000000f9681a64"))) / StorageKey(PatriciaKey(StarkFelt("0x0216b05c387bab9ac31918a3e61672f4618601f3c598a2f3f2710f37053e1ea4")))
[DEBUG snos::starknet::business_logic::fact_state::state]        -> Ok(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000000000"))
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_storage_at ContractAddress(PatriciaKey(StarkFelt("0x00000000000000000000000000000000000000000000000000000000f9681a64"))) / StorageKey(PatriciaKey(StarkFelt("0x004c4fb1ab068f6039d5780c68dd0fa2f8742cceb3426d19667778ca7f3518a9")))
[DEBUG snos::starknet::business_logic::fact_state::state]        -> Ok(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000000000"))
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_class_hash_at ContractAddress(PatriciaKey(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000001001")))
[DEBUG snos::starknet::business_logic::fact_state::state]        -> FieldElement { inner: 0x013dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51 }
[DEBUG snos::starknet::business_logic::fact_state::state] class_hash_as_index: 561405978155448065164184136501758613494542063826668571171916978663245519697
[DEBUG snos::starknet::business_logic::fact_state::state] have contract_class_tree? true
[DEBUG snos::starknet::business_logic::fact_state::state] Should get something from get_leaf()...
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value 13dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_compiled_contract_class CompiledClassHash(StarkFelt("0x013dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51"))
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_storage_at ContractAddress(PatriciaKey(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000001001"))) / StorageKey(PatriciaKey(StarkFelt("0x0723973208639b7839ce298f7ffea61e3f9533872defd7abdb91023db4658812")))
[DEBUG snos::starknet::business_logic::fact_state::state]        -> Ok(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000000000"))
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_storage_at ContractAddress(PatriciaKey(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000001001"))) / StorageKey(PatriciaKey(StarkFelt("0x0723973208639b7839ce298f7ffea61e3f9533872defd7abdb91023db4658813")))
[DEBUG snos::starknet::business_logic::fact_state::state]        -> Ok(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000000000"))
[DEBUG blockifier::transaction::transactions] Transaction execution complete and committed.
[DEBUG blockifier::transaction::transactions] Executing Transaction...
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_storage_at ContractAddress(PatriciaKey(StarkFelt("0x00000000000000000000000000000000000000000000000000000000f9681a64"))) / StorageKey(PatriciaKey(StarkFelt("0x00ef72146f569bb7a31551ba6edfddeb9638c1a9a556a63459b0dfb4500245c0")))
[DEBUG snos::starknet::business_logic::fact_state::state]        -> Ok(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000000000"))
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_storage_at ContractAddress(PatriciaKey(StarkFelt("0x00000000000000000000000000000000000000000000000000000000f9681a64"))) / StorageKey(PatriciaKey(StarkFelt("0x00ef72146f569bb7a31551ba6edfddeb9638c1a9a556a63459b0dfb4500245c1")))
[DEBUG snos::starknet::business_logic::fact_state::state]        -> Ok(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000000000"))
[DEBUG blockifier::transaction::transactions] Transaction execution complete and committed.
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_storage_at ContractAddress(PatriciaKey(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000000001"))) / StorageKey(PatriciaKey(StarkFelt("0x00000000000000000000000000000000000000000000000000000000000007c7")))
[DEBUG snos::starknet::business_logic::fact_state::state] found contract state with no contract hash!
[DEBUG snos::starknet::business_logic::fact_state::state]        -> Ok(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000000000"))
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_class_hash_at ContractAddress(PatriciaKey(StarkFelt("0x00000000000000000000000000000000000000000000000000000000cc0d694a")))
[DEBUG snos::starknet::business_logic::fact_state::state]        -> FieldElement { inner: 0x06128266eceeccff0efd8ae39ff7a7e84e5de2c3c2e8f0b9242f6671a5195607 }
[DEBUG snos::starknet::business_logic::fact_state::state] class_hash_as_index: 2746580340557189842159712619786679516533354601295495493668094589736492553735
[DEBUG snos::starknet::business_logic::fact_state::state] have contract_class_tree? true
[DEBUG snos::starknet::business_logic::fact_state::state] Should get something from get_leaf()...
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value 6128266eceeccff0efd8ae39ff7a7e84e5de2c3c2e8f0b9242f6671a5195607
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_compiled_contract_class CompiledClassHash(StarkFelt("0x0258cd8ad880ea8b5f91b680964871a18a9c3e245a75c029d453df37237aa31d"))
[DEBUG snos::starknet::business_logic::fact_state::state] SharedState as StateReader: get_class_hash_at ContractAddress(PatriciaKey(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000001002")))
[DEBUG snos::starknet::business_logic::fact_state::state]        -> FieldElement { inner: 0x013dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51 }
[DEBUG integration::common::block_utils] contracts: 7
    deprecated_compiled_classes: 1
[DEBUG integration::common::block_utils] contracts to class_hash
[DEBUG integration::common::block_utils]        3543144545 -> 684510872260683222188647886642195438317121207318810807337017151904723578861
[DEBUG integration::common::block_utils]        1 -> 0
[DEBUG integration::common::block_utils]        0 -> 0
[DEBUG integration::common::block_utils]        4097 -> 561405978155448065164184136501758613494542063826668571171916978663245519697
[DEBUG integration::common::block_utils]        3423430986 -> 2746580340557189842159712619786679516533354601295495493668094589736492553735
[DEBUG integration::common::block_utils]        4184349284 -> 244415781683027271007822073451593921893505158640452141330881486431108232504
[DEBUG integration::common::block_utils]        4098 -> 561405978155448065164184136501758613494542063826668571171916978663245519697
[DEBUG integration::common::block_utils] deprecated classes
[DEBUG integration::common::block_utils]        0x013dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51
[DEBUG integration::common::block_utils] classes
[DEBUG integration::common::block_utils]        0x008a559d351aa135d3792bf805ed31fb0d35ac84b103f5ab9645cf4049907538
[DEBUG integration::common::block_utils]        0x01836b5f6042acced412b2f19e19dbfb1b076d2b79a260a824363a4c83492fed
[DEBUG integration::common::block_utils]        0x06128266eceeccff0efd8ae39ff7a7e84e5de2c3c2e8f0b9242f6671a5195607
[DEBUG integration::common::block_utils] class_hash to compiled_class_hash
[DEBUG integration::common::block_utils]        2746580340557189842159712619786679516533354601295495493668094589736492553735 -> 1061526840141250774720172777187664344446046728501391886130254505290973750045
[DEBUG integration::common::block_utils]        244415781683027271007822073451593921893505158640452141330881486431108232504 -> 2579475098104416077643307285161441794434477203062178165319354783617543142404
[DEBUG integration::common::block_utils]        684510872260683222188647886642195438317121207318810807337017151904723578861 -> 546842894337768395980385839464856593144510994746515074611381996297003090151
[DEBUG snos::starknet::business_logic::fact_state::state] Updating contract state tree with 3 modifications...
[DEBUG snos::starknet::business_logic::fact_state::state] Updating contract class tree with 0 modifications...
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value 1001
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value 1001
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value f9681a64
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value f9681a64
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value d3301861
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value d3301861
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value 1
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value 1
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value cc0d694a
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value cc0d694a
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value 1002
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value 1002
exception:
Err(
    CatchAll(
        "No such file or directory (os error 2)",
    ),
)
thread 'os::mint_tokens_test' panicked at tests/integration/os.rs:260:5:
assertion failed: result.is_ok()
stack backtrace:
   0:     0x55849aa25e56 - std::backtrace_rs::backtrace::libunwind::trace::h1dc341b4e2813f9e
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
   1:     0x55849aa25e56 - std::backtrace_rs::backtrace::trace_unsynchronized::hfad4b4e01048aad8
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x55849aa25e56 - std::sys_common::backtrace::_print_fmt::ha8055331974a7d78
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/sys_common/backtrace.rs:68:5
   3:     0x55849aa25e56 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h740ee8cd0c57d372
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x55849aa54720 - core::fmt::rt::Argument::fmt::h0722455de8079765
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/fmt/rt.rs:142:9
   5:     0x55849aa54720 - core::fmt::write::hbd3b332ff0dac0ca
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/fmt/mod.rs:1120:17
   6:     0x55849aa22c9f - std::io::Write::write_fmt::hfce1714c20556efc
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/io/mod.rs:1810:15
   7:     0x55849aa25c34 - std::sys_common::backtrace::_print::h6da8c2c8d8de312e
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x55849aa25c34 - std::sys_common::backtrace::print::hd9b437363ec873b9
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x55849aa279a7 - std::panicking::default_hook::{{closure}}::h5b31428bd7e3d558
  10:     0x55849aa2768d - std::panicking::default_hook::h3c98558e03f42120
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:289:9
  11:     0x558498b5eb97 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h45b1fbd5ceb974e4
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/alloc/src/boxed.rs:2030:9
  12:     0x558498b5eb97 - test::test_main::{{closure}}::h29e8f6fdb327e238
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/test/src/lib.rs:138:21
  13:     0x55849aa27fc6 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2fccfd65b0db3eb5
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/alloc/src/boxed.rs:2030:9
  14:     0x55849aa27fc6 - std::panicking::rust_panic_with_hook::h5d7f7210d8c2da4e
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:785:13
  15:     0x55849aa27cd9 - std::panicking::begin_panic_handler::{{closure}}::h4fd8b8b5126c3b9e
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:651:13
  16:     0x55849aa26356 - std::sys_common::backtrace::__rust_end_short_backtrace::hfba2ef627990310f
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/sys_common/backtrace.rs:171:18
  17:     0x55849aa27a70 - rust_begin_unwind
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:647:5
  18:     0x5584988a6c95 - core::panicking::panic_fmt::hff9f0a3f3a653d0d
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/panicking.rs:72:14
  19:     0x5584988a6d53 - core::panicking::panic::h1370cf2264448c5b
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/panicking.rs:144:5
  20:     0x558498950836 - integration::os::mint_tokens_test::{{closure}}::mint_tokens_test::{{closure}}::h488751b1506141ce
                               at /home/l0gykal/Documents/Notes/MA2/Semester_Project/snos2/snos/tests/integration/os.rs:260:5
  21:     0x55849894f5db - integration::os::mint_tokens_test::{{closure}}::hc5c0d3740fe9ea05
                               at /home/l0gykal/Documents/Notes/MA2/Semester_Project/snos2/snos/tests/integration/os.rs:204:1
  22:     0x5584989efef3 - <core::pin::Pin<P> as core::future::future::Future>::poll::he685e3dab885e6ef
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/future/future.rs:124:9
  23:     0x5584988dc014 - tokio::runtime::park::CachedParkThread::block_on::{{closure}}::h19df69cf5a91e577
                               at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/park.rs:281:63
  24:     0x5584988dbeb4 - tokio::runtime::coop::with_budget::h76d59ef71b66a2b0
                               at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/coop.rs:107:5
  25:     0x5584988dbeb4 - tokio::runtime::coop::budget::h17445ce6a00f3898
                               at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/coop.rs:73:5
  26:     0x5584988dbeb4 - tokio::runtime::park::CachedParkThread::block_on::hf4ff8ed862879ad2
                               at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/park.rs:281:31
  27:     0x558498a3a924 - tokio::runtime::context::blocking::BlockingRegionGuard::block_on::h0d0f20788c5e9243
                               at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/context/blocking.rs:66:9
  28:     0x558498a7be98 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}::h29f5b686a7ed421e
                               at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/scheduler/multi_thread/mod.rs:87:13
  29:     0x5584988fa1f4 - tokio::runtime::context::runtime::enter_runtime::hdbcb3ec4ad632eb2
                               at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/context/runtime.rs:65:16
  30:     0x558498a7be68 - tokio::runtime::scheduler::multi_thread::MultiThread::block_on::h9f726b9ed99bad5b
                               at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/scheduler/multi_thread/mod.rs:86:9
  31:     0x5584989c6827 - tokio::runtime::runtime::Runtime::block_on::hb085a9b11fb614fd
                               at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/runtime.rs:349:45
  32:     0x5584989fcd2d - integration::os::mint_tokens_test::h26458d3759f2b85b
                               at /home/l0gykal/Documents/Notes/MA2/Semester_Project/snos2/snos/tests/integration/os.rs:204:1
  33:     0x55849894f337 - integration::os::mint_tokens_test::{{closure}}::h187dd0ac8d42d6f8
                               at /home/l0gykal/Documents/Notes/MA2/Semester_Project/snos2/snos/tests/integration/os.rs:204:10
  34:     0x558498906906 - core::ops::function::FnOnce::call_once::hca40f771f28d7133
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/ops/function.rs:250:5
  35:     0x558498b6444f - core::ops::function::FnOnce::call_once::h3a819b371903509f
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/ops/function.rs:250:5
  36:     0x558498b6444f - test::__rust_begin_short_backtrace::he580d02881cb2c26
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/test/src/lib.rs:627:18
  37:     0x558498b63201 - test::run_test_in_process::{{closure}}::hf633577de7d5678d
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/test/src/lib.rs:650:60
  38:     0x558498b63201 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h52170ed3fa67d768
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/panic/unwind_safe.rs:272:9
  39:     0x558498b63201 - std::panicking::try::do_call::h2484548e9f67e3a9
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:554:40
  40:     0x558498b63201 - std::panicking::try::h38dc8cb97cf6cccf
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:518:19
  41:     0x558498b63201 - std::panic::catch_unwind::h1f8044c8fd8594aa
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panic.rs:142:14
  42:     0x558498b63201 - test::run_test_in_process::h7d949ca1ac8f6e5d
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/test/src/lib.rs:650:27
  43:     0x558498b63201 - test::run_test::{{closure}}::heab841fb60b7c5ce
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/test/src/lib.rs:573:43
  44:     0x558498b2a766 - test::run_test::{{closure}}::h3be5850a54bbb7a1
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/test/src/lib.rs:601:41
  45:     0x558498b2a766 - std::sys_common::backtrace::__rust_begin_short_backtrace::h5d847190821e1eee
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/sys_common/backtrace.rs:155:18
  46:     0x558498b2f7a7 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hf307b9297aac3a18
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/thread/mod.rs:529:17
  47:     0x558498b2f7a7 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hbae51f5434c2822e
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/panic/unwind_safe.rs:272:9
  48:     0x558498b2f7a7 - std::panicking::try::do_call::hcb42b51e932f1df7
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:554:40
  49:     0x558498b2f7a7 - std::panicking::try::h122feebda1f4c165
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:518:19
  50:     0x558498b2f7a7 - std::panic::catch_unwind::hd366308c3d8d5e13
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panic.rs:142:14
  51:     0x558498b2f7a7 - std::thread::Builder::spawn_unchecked_::{{closure}}::hc0dfd733450cddff
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/thread/mod.rs:528:30
  52:     0x558498b2f7a7 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1108815b627628b8
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/ops/function.rs:250:5
  53:     0x55849aa2ce15 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5d6fe2e5cff43b50
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/alloc/src/boxed.rs:2016:9
  54:     0x55849aa2ce15 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h7579410d2e932be5
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/alloc/src/boxed.rs:2016:9
  55:     0x55849aa2ce15 - std::sys::unix::thread::Thread::new::thread_start::he3fa03bc261b98c3
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/sys/unix/thread.rs:108:17
  56:     0x7f9ef4bbbded - <unknown>
  57:     0x7f9ef4c3f0dc - <unknown>
  58:                0x0 - <unknown>


failures:
    os::mint_tokens_test

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 36 filtered out; finished in 22.99s

error: test failed, to rerun pass `--test integration`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant