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: "load_compiled_class_facts_inner" error in custom erc20 test #260

Open
L0GYKAL opened this issue Jul 7, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@L0GYKAL
Copy link

L0GYKAL commented Jul 7, 2024

SNOS version:
Fork of SNOS: https://github.com/L0GYKAL/snos
Added the erc20_custom contract (in cairo and compiled in featured/cairo1).
Added a state creation function in state.rs and added a test in os.rs.
Code sync with version 04f64d4
Current behavior:

Testing started at 13:18 ...
    Finished test [unoptimized + debuginfo] target(s) in 2.29s
     Running tests/integration/main.rs (target/debug/deps/integration-8c7af95daf3681d4)
[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("0x0000000000000000000000000000000000000000000000000000000000001001"))) -> ClassHash(StarkFelt("0x013dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51"))
[DEBUG integration::common::state] Inserting deprecated class_hash_to_class: ContractAddress(PatriciaKey(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000001002"))) -> 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("0x004c4fb1ab068f6039d5780c68dd0fa2f8742cceb3426d19667778ca7f3518a9")))
[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_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("0x0000000000000000000000000000000000000000000000000000000000001002")))
[DEBUG snos::starknet::business_logic::fact_state::state]        -> FieldElement { inner: 0x013dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51 }
[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 integration::common::block_utils] contracts: 7
    deprecated_compiled_classes: 1
[DEBUG integration::common::block_utils] contracts to class_hash
[DEBUG integration::common::block_utils] 	4097 -> 561405978155448065164184136501758613494542063826668571171916978663245519697
[DEBUG integration::common::block_utils] 	4184349284 -> 244415781683027271007822073451593921893505158640452141330881486431108232504
[DEBUG integration::common::block_utils] 	3543144545 -> 684510872260683222188647886642195438317121207318810807337017151904723578861
[DEBUG integration::common::block_utils] 	4098 -> 561405978155448065164184136501758613494542063826668571171916978663245519697
[DEBUG integration::common::block_utils] 	0 -> 0
[DEBUG integration::common::block_utils] 	1 -> 0
[DEBUG integration::common::block_utils] 	3423430986 -> 2746580340557189842159712619786679516533354601295495493668094589736492553735
[DEBUG integration::common::block_utils] deprecated classes
[DEBUG integration::common::block_utils] 	0x013dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51
[DEBUG integration::common::block_utils] classes
[DEBUG integration::common::block_utils] 	0x01836b5f6042acced412b2f19e19dbfb1b076d2b79a260a824363a4c83492fed
[DEBUG integration::common::block_utils] 	0x06128266eceeccff0efd8ae39ff7a7e84e5de2c3c2e8f0b9242f6671a5195607
[DEBUG integration::common::block_utils] 	0x008a559d351aa135d3792bf805ed31fb0d35ac84b103f5ab9645cf4049907538
[DEBUG integration::common::block_utils] class_hash to compiled_class_hash
[DEBUG integration::common::block_utils] 	244415781683027271007822073451593921893505158640452141330881486431108232504 -> 2579475098104416077643307285161441794434477203062178165319354783617543142404
[DEBUG integration::common::block_utils] 	2746580340557189842159712619786679516533354601295495493668094589736492553735 -> 1061526840141250774720172777187664344446046728501391886130254505290973750045
[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 1002
[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 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 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 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 1
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value 1
exception:
Err(
    CatchAll(
        "No such file or directory (os error 2)",
    ),
)

assertion failed: result.is_ok()
thread 'os::mint_tokens_test' panicked at tests/integration/os.rs:260:5:
assertion failed: result.is_ok()
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: core::panicking::panic
             at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/panicking.rs:144:5
   3: integration::os::mint_tokens_test::{{closure}}::mint_tokens_test::{{closure}}
             at ./tests/integration/os.rs:260:5
   4: integration::os::mint_tokens_test::{{closure}}
             at ./tests/integration/os.rs:204:1
   5: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/future/future.rs:124:9
   6: tokio::runtime::park::CachedParkThread::block_on::{{closure}}
             at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/park.rs:281:63
   7: tokio::runtime::coop::with_budget
             at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/coop.rs:107:5
   8: tokio::runtime::coop::budget
             at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/coop.rs:73:5
   9: tokio::runtime::park::CachedParkThread::block_on
             at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/park.rs:281:31
  10: tokio::runtime::context::blocking::BlockingRegionGuard::block_on
             at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/context/blocking.rs:66:9
  11: tokio::runtime::scheduler::multi_thread::MultiThread::block_on::{{closure}}
             at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/scheduler/multi_thread/mod.rs:87:13
  12: tokio::runtime::context::runtime::enter_runtime
             at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/context/runtime.rs:65:16
  13: tokio::runtime::scheduler::multi_thread::MultiThread::block_on
             at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/scheduler/multi_thread/mod.rs:86:9
  14: tokio::runtime::runtime::Runtime::block_on
             at /home/l0gykal/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.0/src/runtime/runtime.rs:349:45
  15: integration::os::mint_tokens_test
             at ./tests/integration/os.rs:204:1
  16: integration::os::mint_tokens_test::{{closure}}
             at ./tests/integration/os.rs:204:10
  17: core::ops::function::FnOnce::call_once
             at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/ops/function.rs:250:5
  18: core::ops::function::FnOnce::call_once
             at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

error: test failed, to rerun pass `-p snos --test integration`
error: 1 target failed:
    `-p snos --test integration`

Process finished with exit code 101

Expected behavior:
I expect the OS to produce a valid CairoPIE.
Steps to reproduce:
Clone the fork and run the mint_tokens_test in os.rs.
Related code:

#[rstest]
// We need to use the multi_thread runtime to use task::block_in_place for sync -> async calls.
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
async fn mint_tokens_test(
    #[future] initial_state_erc20: StarknetTestState,
    block_context: BlockContext,
    max_fee: Fee,
) {
    let tx_version = TransactionVersion::ZERO;
    let initial_state = initial_state_erc20.await;
    let mut nonce_manager = NonceManager::default();

    let sender_address = initial_state.cairo1_contracts.get("account_with_dummy_validate").unwrap().address;
    let erc20_address = initial_state.cairo1_contracts.get("erc20_cairo_erc_20.contract_class").unwrap().address;

    // test_storage_read_write
    // let test_storage_read_write_tx = test_utils::account_invoke_tx(invoke_tx_args! {
    //     max_fee,
    //     sender_address: sender_address,
    //     calldata: create_calldata(contract_address, "test_storage_read_write", &[StarkFelt::TWO, StarkFelt::ONE]),
    //     version: tx_version,
    //     nonce: nonce_manager.next(sender_address),
    // });

    let test_init_tokens_tx = test_utils::account_invoke_tx(invoke_tx_args! {
        max_fee,
        sender_address: sender_address,
        calldata: create_calldata(erc20_address, "init", &[]),
        version: tx_version,
        nonce: nonce_manager.next(sender_address),
    });

    let test_mint_tokens_tx = test_utils::account_invoke_tx(invoke_tx_args! {
        max_fee,
        sender_address: sender_address,
        calldata: create_calldata(erc20_address, "mint", &[StarkFelt::from(sender_address), StarkFelt::from(2000_u128), StarkFelt::from(0_u128)]), //TODO: change the arguments
        version: tx_version,
        nonce: nonce_manager.next(sender_address),
    });

    let txs = vec![
        test_init_tokens_tx,
        test_mint_tokens_tx,
    ]
    .into_iter()
    .map(Into::into)
    .collect();

    let result = execute_txs_and_run_os(
        initial_state.cached_state,
        block_context,
        txs,
        initial_state.cairo0_compiled_classes,
        initial_state.cairo1_compiled_classes,
    )
        .await;
    assert!(result.is_ok());
    let size = result.unwrap().0.memory.to_bytes().len();
    print!("{}", size);

    //TODO: import and call the madara_rpc to call the prover
}
@L0GYKAL L0GYKAL added the bug Something isn't working label Jul 7, 2024
@L0GYKAL
Copy link
Author

L0GYKAL commented Jul 9, 2024

I solved the initial bug, it was on me, I cloned the repo but didn't recompile the cairo OS.
But now I have another error:

RUST_BACKTRACE=full cargo test mint_tokens_test    101 ✘  23s   snos-py3.12  
    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("0x0000000000000000000000000000000000000000000000000000000000001001"))) -> ClassHash(StarkFelt("0x013dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51"))
[DEBUG integration::common::state] Inserting deprecated class_hash_to_class: ContractAddress(PatriciaKey(StarkFelt("0x0000000000000000000000000000000000000000000000000000000000001002"))) -> 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("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_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_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]        4184349284 -> 244415781683027271007822073451593921893505158640452141330881486431108232504
[DEBUG integration::common::block_utils]        4097 -> 561405978155448065164184136501758613494542063826668571171916978663245519697
[DEBUG integration::common::block_utils]        3423430986 -> 2746580340557189842159712619786679516533354601295495493668094589736492553735
[DEBUG integration::common::block_utils]        1 -> 0
[DEBUG integration::common::block_utils]        3543144545 -> 684510872260683222188647886642195438317121207318810807337017151904723578861
[DEBUG integration::common::block_utils]        4098 -> 561405978155448065164184136501758613494542063826668571171916978663245519697
[DEBUG integration::common::block_utils]        0 -> 0
[DEBUG integration::common::block_utils] deprecated classes
[DEBUG integration::common::block_utils]        0x013dbe991273192b5573c526cddc27a27decb8525b44536cb0f57b5b2c089b51
[DEBUG integration::common::block_utils] classes
[DEBUG integration::common::block_utils]        0x06128266eceeccff0efd8ae39ff7a7e84e5de2c3c2e8f0b9242f6671a5195607
[DEBUG integration::common::block_utils]        0x01836b5f6042acced412b2f19e19dbfb1b076d2b79a260a824363a4c83492fed
[DEBUG integration::common::block_utils]        0x008a559d351aa135d3792bf805ed31fb0d35ac84b103f5ab9645cf4049907538
[DEBUG integration::common::block_utils] class_hash to compiled_class_hash
[DEBUG integration::common::block_utils]        244415781683027271007822073451593921893505158640452141330881486431108232504 -> 2579475098104416077643307285161441794434477203062178165319354783617543142404
[DEBUG integration::common::block_utils]        2746580340557189842159712619786679516533354601295495493668094589736492553735 -> 1061526840141250774720172777187664344446046728501391886130254505290973750045
[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 1002
[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 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 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 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 f9681a64
[DEBUG snos::starkware_utils::commitment_tree::binary_fact_tree] Getting fact with hash value f9681a64
[ERROR integration::common::transaction_utils] traceback:
    Cairo traceback (most recent call last):
    cairo-lang/src/starkware/starknet/core/os/os.cairo:69:42: (pc=0:10583)
        let (block_context: BlockContext*) = get_block_context(
                                             ^****************^
    /home/l0gykal/Documents/Notes/MA2/Semester_Project/snos2/snos/cairo-lang/src/starkware/starknet/core/os/block_context.cairo:56:58: (pc=0:2186)
        let (n_compiled_class_facts, compiled_class_facts) = load_compiled_class_facts();
                                                             ^*************************^
    /home/l0gykal/Documents/Notes/MA2/Semester_Project/snos2/snos/cairo-lang/src/starkware/starknet/core/os/contract_class/compiled_class.cairo:325:5: (pc=0:1878)
        load_compiled_class_facts_inner(
        ^******************************^
    /home/l0gykal/Documents/Notes/MA2/Semester_Project/snos2/snos/cairo-lang/src/starkware/starknet/core/os/contract_class/compiled_class.cairo:411:12: (pc=0:1932)
        return load_compiled_class_facts_inner(
               ^******************************^
    /home/l0gykal/Documents/Notes/MA2/Semester_Project/snos2/snos/cairo-lang/src/starkware/starknet/core/os/contract_class/compiled_class.cairo:411:12: (pc=0:1932)
        return load_compiled_class_facts_inner(
               ^******************************^
    
[ERROR integration::common::transaction_utils] died at: /home/l0gykal/Documents/Notes/MA2/Semester_Project/snos2/snos/cairo-lang/src/starkware/starknet/core/os/contract_class/compiled_class.cairo:398
[ERROR integration::common::transaction_utils] inst_location:
    Location { end_line: 409, end_col: 7, input_file: InputFile { filename: "/home/l0gykal/Documents/Notes/MA2/Semester_Project/snos2/snos/cairo-lang/src/starkware/starknet/core/os/contract_class/compiled_class.cairo" }, parent_location: None, start_line: 398, start_col: 5 }
thread 'os::mint_tokens_test' panicked at tests/integration/os.rs:260:5:
assertion failed: result.is_ok()
stack backtrace:
   0:     0x55cc38d1ee56 - std::backtrace_rs::backtrace::libunwind::trace::h1dc341b4e2813f9e
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
   1:     0x55cc38d1ee56 - std::backtrace_rs::backtrace::trace_unsynchronized::hfad4b4e01048aad8
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x55cc38d1ee56 - std::sys_common::backtrace::_print_fmt::ha8055331974a7d78
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/sys_common/backtrace.rs:68:5
   3:     0x55cc38d1ee56 - <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:     0x55cc38d4d720 - core::fmt::rt::Argument::fmt::h0722455de8079765
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/fmt/rt.rs:142:9
   5:     0x55cc38d4d720 - core::fmt::write::hbd3b332ff0dac0ca
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/fmt/mod.rs:1120:17
   6:     0x55cc38d1bc9f - std::io::Write::write_fmt::hfce1714c20556efc
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/io/mod.rs:1810:15
   7:     0x55cc38d1ec34 - std::sys_common::backtrace::_print::h6da8c2c8d8de312e
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/sys_common/backtrace.rs:47:5
   8:     0x55cc38d1ec34 - std::sys_common::backtrace::print::hd9b437363ec873b9
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/sys_common/backtrace.rs:34:9
   9:     0x55cc38d209a7 - std::panicking::default_hook::{{closure}}::h5b31428bd7e3d558
  10:     0x55cc38d2068d - std::panicking::default_hook::h3c98558e03f42120
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:289:9
  11:     0x55cc36e57b97 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h45b1fbd5ceb974e4
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/alloc/src/boxed.rs:2030:9
  12:     0x55cc36e57b97 - test::test_main::{{closure}}::h29e8f6fdb327e238
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/test/src/lib.rs:138:21
  13:     0x55cc38d20fc6 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h2fccfd65b0db3eb5
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/alloc/src/boxed.rs:2030:9
  14:     0x55cc38d20fc6 - std::panicking::rust_panic_with_hook::h5d7f7210d8c2da4e
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:785:13
  15:     0x55cc38d20cd9 - std::panicking::begin_panic_handler::{{closure}}::h4fd8b8b5126c3b9e
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:651:13
  16:     0x55cc38d1f356 - std::sys_common::backtrace::__rust_end_short_backtrace::hfba2ef627990310f
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/sys_common/backtrace.rs:171:18
  17:     0x55cc38d20a70 - rust_begin_unwind
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:647:5
  18:     0x55cc36b9fc95 - core::panicking::panic_fmt::hff9f0a3f3a653d0d
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/panicking.rs:72:14
  19:     0x55cc36b9fd53 - core::panicking::panic::h1370cf2264448c5b
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/panicking.rs:144:5
  20:     0x55cc36c49836 - 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:     0x55cc36c485db - integration::os::mint_tokens_test::{{closure}}::hc5c0d3740fe9ea05
                               at /home/l0gykal/Documents/Notes/MA2/Semester_Project/snos2/snos/tests/integration/os.rs:204:1
  22:     0x55cc36ce8ef3 - <core::pin::Pin<P> as core::future::future::Future>::poll::he685e3dab885e6ef
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/future/future.rs:124:9
  23:     0x55cc36bd5014 - 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:     0x55cc36bd4eb4 - 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:     0x55cc36bd4eb4 - 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:     0x55cc36bd4eb4 - 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:     0x55cc36d33924 - 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:     0x55cc36d74e98 - 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:     0x55cc36bf31f4 - 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:     0x55cc36d74e68 - 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:     0x55cc36cbf827 - 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:     0x55cc36cf5d2d - integration::os::mint_tokens_test::h26458d3759f2b85b
                               at /home/l0gykal/Documents/Notes/MA2/Semester_Project/snos2/snos/tests/integration/os.rs:204:1
  33:     0x55cc36c48337 - integration::os::mint_tokens_test::{{closure}}::h187dd0ac8d42d6f8
                               at /home/l0gykal/Documents/Notes/MA2/Semester_Project/snos2/snos/tests/integration/os.rs:204:10
  34:     0x55cc36bff906 - core::ops::function::FnOnce::call_once::hca40f771f28d7133
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/ops/function.rs:250:5
  35:     0x55cc36e5d44f - core::ops::function::FnOnce::call_once::h3a819b371903509f
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/ops/function.rs:250:5
  36:     0x55cc36e5d44f - test::__rust_begin_short_backtrace::he580d02881cb2c26
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/test/src/lib.rs:627:18
  37:     0x55cc36e5c201 - test::run_test_in_process::{{closure}}::hf633577de7d5678d
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/test/src/lib.rs:650:60
  38:     0x55cc36e5c201 - <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:     0x55cc36e5c201 - std::panicking::try::do_call::h2484548e9f67e3a9
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:554:40
  40:     0x55cc36e5c201 - std::panicking::try::h38dc8cb97cf6cccf
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:518:19
  41:     0x55cc36e5c201 - std::panic::catch_unwind::h1f8044c8fd8594aa
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panic.rs:142:14
  42:     0x55cc36e5c201 - test::run_test_in_process::h7d949ca1ac8f6e5d
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/test/src/lib.rs:650:27
  43:     0x55cc36e5c201 - test::run_test::{{closure}}::heab841fb60b7c5ce
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/test/src/lib.rs:573:43
  44:     0x55cc36e23766 - test::run_test::{{closure}}::h3be5850a54bbb7a1
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/test/src/lib.rs:601:41
  45:     0x55cc36e23766 - std::sys_common::backtrace::__rust_begin_short_backtrace::h5d847190821e1eee
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/sys_common/backtrace.rs:155:18
  46:     0x55cc36e287a7 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hf307b9297aac3a18
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/thread/mod.rs:529:17
  47:     0x55cc36e287a7 - <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:     0x55cc36e287a7 - std::panicking::try::do_call::hcb42b51e932f1df7
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:554:40
  49:     0x55cc36e287a7 - std::panicking::try::h122feebda1f4c165
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panicking.rs:518:19
  50:     0x55cc36e287a7 - std::panic::catch_unwind::hd366308c3d8d5e13
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/panic.rs:142:14
  51:     0x55cc36e287a7 - std::thread::Builder::spawn_unchecked_::{{closure}}::hc0dfd733450cddff
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/thread/mod.rs:528:30
  52:     0x55cc36e287a7 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1108815b627628b8
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/core/src/ops/function.rs:250:5
  53:     0x55cc38d25e15 - <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:     0x55cc38d25e15 - <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:     0x55cc38d25e15 - std::sys::unix::thread::Thread::new::thread_start::he3fa03bc261b98c3
                               at /rustc/a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01/library/std/src/sys/unix/thread.rs:108:17
  56:     0x7fb4ba7bbded - <unknown>
  57:     0x7fb4ba83f0dc - <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 25.22s

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

@L0GYKAL L0GYKAL changed the title bug: file not found in custom erc20 test bug: "load_compiled_class_facts_inner" error in custom erc20 test Jul 9, 2024
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