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

decode command panics when specified transaction does not exist #244

Closed
2 tasks done
jmcph4 opened this issue Dec 20, 2023 · 0 comments · Fixed by #261
Closed
2 tasks done

decode command panics when specified transaction does not exist #244

jmcph4 opened this issue Dec 20, 2023 · 0 comments · Fixed by #261
Assignees
Labels
T-bug Type: bug

Comments

@jmcph4
Copy link
Contributor

jmcph4 commented Dec 20, 2023

Component

Heimdall (CLI)

Have you ensured that you are up to date?

  • Bifrost
  • Heimdall

What version of Heimdall are you on?

heimdall 0.7.1

Operating System

Linux

Describe the bug

0x45068ef2273a928a9b092c5e41cdca1672ebc6921355deb3dcc5ae7b9a43db11 doesn't exist.

$ heimdall decode 0x45068ef2273a928a9b092c5e41cdca1672ebc6921355deb3dcc5ae7b9a43db11
20-12-2023 10:46:58.367744864  error: reading on-chain data requires an RPC provider. Use `heimdall --help` for more information.
20-12-2023 10:46:58.485498734  fatal: thread 'main' encountered a fatal error: 'panicked at /home/jmcph4/.bifrost/build/heimdall-rs/core/src/decode/mod.rs:130:78:
called `Result::unwrap()` on an `Err` value: "failed to get transaction"'!
20-12-2023 10:46:58.485567205  fatal: Stack Trace:

   0:     0x5593524f9c2c - backtrace::capture::Backtrace::new::hafebdcb90471f7ca
   1:     0x55935249f4c0 - heimdall::main::{{closure}}::{{closure}}::h07cedefe139a8327
   2:     0x5593528dbd9b - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h87b887549356728a
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/alloc/src/boxed.rs:2021:9
                           std::panicking::rust_panic_with_hook::hd2f0efd2fec86cb0
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:735:13
   3:     0x5593528dbb1c - std::panicking::begin_panic_handler::{{closure}}::h3651b7fc4f61d784
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:609:13
   4:     0x5593528dba76 - std::sys_common::backtrace::__rust_end_short_backtrace::hbc468e4b98c7ae04
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/sys_common/backtrace.rs:170:18
   5:     0x5593528dba61 - rust_begin_unwind
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:597:5
   6:     0x559352375444 - core::panicking::panic_fmt::h979245e2fdb2fabd
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/panicking.rs:72:14
   7:     0x5593523759b2 - core::result::unwrap_failed::h8c4b86241881fbbb
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/result.rs:1652:5
   8:     0x5593523ce55b - heimdall_core::decode::decode::{{closure}}::hb1fcd17bac8ef23a
   9:     0x55935249781b - heimdall::main::{{closure}}::h5f096fe23daabe92
  10:     0x559352493c0e - heimdall::main::h442234f775210a21
  11:     0x559352423853 - std::sys_common::backtrace::__rust_begin_short_backtrace::ha7e64eb0abd7ae50
  12:     0x5593524255a1 - std::rt::lang_start::{{closure}}::h8314b9c2ae5dfc15
  13:     0x5593528a3f1a - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hf9057cfaeeb252e2
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/core/src/ops/function.rs:284:13
                           std::panicking::try::do_call::h629e203a624883e4
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:504:40
                           std::panicking::try::h7b61614724d6a4f1
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:468:19
                           std::panic::catch_unwind::h354ac1c0268491d8
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panic.rs:142:14
                           std::rt::lang_start_internal::{{closure}}::h919fee3c5ba8f617
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/rt.rs:148:48
                           std::panicking::try::do_call::h54583f67455bff32
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:504:40
                           std::panicking::try::hb0e12c4e01d39dc2
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panicking.rs:468:19
                           std::panic::catch_unwind::h367b6339e3ca9a3b
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/panic.rs:142:14
                           std::rt::lang_start_internal::ha5ce8533eaa0fda8
                               at /rustc/79e9716c980570bfd1f666e3b16ac583f0168962/library/std/src/rt.rs:148:20
  14:     0x55935249fbe4 - main
  15:     0x7f49eff0bd0a - __libc_start_main
                               at ./csu/../csu/libc-start.c:308:16
  16:     0x55935239f57a - _start
  17:                0x0 - <unknown>

Note that heimdall decode --rpc-url https://polygon.llamarpc.com 0x45068ef2273a928a9b092c5e41cdca1672ebc6921355deb3dcc5ae7b9a43db11 works as expected (because the transaction does exist on that chain). This suggests it's not an issue with the decoder itself but rather the setup for the decoder run.

Likely related to (and fixed by) #217.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants