You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to pipe the output of a cast call to a cast abi-decode. cast call 0x5FbDB2315678afecb367f032d93F642f64180aa3 "get_car()" --rpc-url=$LOCAL_PROVIDER | cast abi-decode "(string,uint256,uint256)"
error: the following required arguments were not provided:
<CALLDATA>
Usage: cast abi-decode <SIG> <CALLDATA>
For more information, try '--help'.
The application panicked (crashed).
Message: failed printing to stdout: Broken pipe (os error 32)
Location: library/std/src/io/stdio.rs:1118
This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1: __libc_start_call_main<unknown>
at ./csu/../sysdeps/nptl/libc_start_call_main.h:58
2: __libc_start_main_impl<unknown>
at ./csu/../csu/libc-start.c:360
The text was updated successfully, but these errors were encountered:
@grandizzy doesn't appear this is a regression of #9109 which is fortunate but #9174 does not appear to fix this either. Going to investigate this further.
Edit:
After #9174 we no longer panic but we do still throw Error: Broken pipe (os error 32) without a backtrace
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (e903484 2024-07-19T00:35:00.583275743Z)
What command(s) is the bug in?
cast call ... | cast abi_decode
Operating System
Linux
Describe the bug
I am trying to pipe the output of a cast call to a cast abi-decode.
cast call 0x5FbDB2315678afecb367f032d93F642f64180aa3 "get_car()" --rpc-url=$LOCAL_PROVIDER | cast abi-decode "(string,uint256,uint256)"
The text was updated successfully, but these errors were encountered: