leo icon indicating copy to clipboard operation
leo copied to clipboard

[Bug] leo deploy panic

Open 0xreese opened this issue 7 months ago • 0 comments

The error is "called Result::unwrap() on an Err value: Expected 1 inputs, found 2"

thread `main` panicked at /root/.cargo/git/checkouts/snarkvm-b1878b0251c7df5c/fddd8b9/vm/package/deploy.rs:146:63:
called `Result::unwrap()` on an `Err` value: Expected 1 inputs, found 2
stack backtrace:
   0: leo::set_panic_hook::{{closure}}
   1: std::panicking::rust_panic_with_hook
   2: std::panicking::begin_panic_handler::{{closure}}
   3: std::sys_common::backtrace::__rust_end_short_backtrace
   4: rust_begin_unwind
   5: core::panicking::panic_fmt
   6: core::result::unwrap_failed
   7: snarkvm::package::deploy::<impl snarkvm::package::Package<N>>::deploy
   8: leo_lang::cli::commands::deploy::handle_deploy
   9: <leo_lang::cli::commands::deploy::Deploy as leo_lang::cli::commands::Command>::apply
  10: leo_lang::cli::commands::Command::try_execute
  11: leo_lang::cli::cli::run_with_args
  12: scoped_tls::ScopedKey<T>::set
  13: leo::main
  14: std::sys_common::backtrace::__rust_begin_short_backtrace
  15: std::rt::lang_start::{{closure}}
  16: std::rt::lang_start_internal
  17: main
  18: __libc_start_main
             at /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
  19: _start

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/AleoHQ/leo/issues/new?labels=bug,panic&template=bug.md&title=[Bug]

note: leo-lang 1.12.0 running on Linux 5.15.153.1-microsoft-standard-WSL2

note: compiler args: leo deploy --recursive

note: compiler flags: CLI { debug: false, quiet: false, command: Deploy { command: Deploy { fee_options: FeeOptions { dry_run: false, priority_fee: 0, private_key: None, record: None }, no_build: false, recursive: true, wait: 12, options: BuildOptions { endpoint: "https://api.explorer.aleo.org/v1", network: "testnet", non_recursive: false, offline: false, enable_symbol_table_spans: false, enable_initial_symbol_table_snapshot: false, enable_type_checked_symbol_table_snapshot: false, enable_unrolled_symbol_table_snapshot: false, enable_ast_spans: false, enable_dce: false, enable_all_ast_snapshots: false, enable_initial_ast_snapshot: false, enable_unrolled_ast_snapshot: false, enable_ssa_ast_snapshot: false, enable_flattened_ast_snapshot: false, enable_destructured_ast_snapshot: false, enable_inlined_ast_snapshot: false, enable_dce_ast_snapshot: false, conditional_block_max_depth: 10, disable_conditional_branch_type_checking: false } } }, path: None, home: None }

0xreese avatar Jun 28 '24 10:06 0xreese