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(cast) cast send --private-key --auth --create [CODE] incompatible, panics #9918

Open
2 tasks done
ethever opened this issue Feb 19, 2025 · 1 comment
Open
2 tasks done
Labels
C-cast Command: cast T-bug Type: bug

Comments

@ethever
Copy link

ethever commented Feb 19, 2025

Component

Cast

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

root@ser7:~# forge --version forge Version: 1.0.0-nightly Commit SHA: 3d393b6 Build Timestamp: 2025-02-18T00:20:51.428176156Z (1739838051) Build Profile: maxperf

What version of Foundryup are you on?

root@ser7:~# foundryup --version

What command(s) is the bug in?

cast --private-key --auth --create [CODE]

Operating System

Linux

Describe the bug

cast send --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 --auth $(cast wallet sign-auth 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80) --create 0x60806040523373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610072576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610069906100e5565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16ff5b5f82825260208201905092915050565b7f74782e6f726967696e203d3d206d73672e73656e6465720000000000000000005f82015250565b5f6100cf60178361008b565b91506100da8261009b565b602082019050919050565b5f6020820190508181035f8301526100fc816100c3565b905091905056fe
Warning: This is a nightly build of Foundry. It is recommended to use the latest stable version. Visit https://book.getfoundry.sh/announcements for more information.
To mute this warning set `FOUNDRY_DISABLE_NIGHTLY_WARNING` in your environment.

Warning: This is a nightly build of Foundry. It is recommended to use the latest stable version. Visit https://book.getfoundry.sh/announcements for more information.
To mute this warning set `FOUNDRY_DISABLE_NIGHTLY_WARNING` in your environment.

The application panicked (crashed).
Message:  checked): "The field `to` can only be of type TxKind::Call(Account). Please change it accordingly."
Location: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alloy-rpc-types-eth-0.11.1/src/transaction/request.rs:684

This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                ⋮ 8 frames hidden ⋮
   9: alloy_network::any::builder::<impl alloy_network::transaction::builder::TransactionBuilder<alloy_network::any::AnyNetwork> for alloy_serde::other::WithOtherFields<alloy_rpc_types_eth::transaction::request::TransactionRequest>>::build::{{closure}}::h476d8bf6dce9cdef
      at <unknown source file>:<unknown line>
  10: <alloy_provider::fillers::FillProvider<F,P,N> as alloy_provider::provider::trait::Provider<N>>::send_transaction_internal::{{closure}}::h8045a4341050e58e
      at <unknown source file>:<unknown line>
  11: alloy_provider::provider::trait::Provider::send_transaction::{{closure}}::h9d7aa4ff0e959492
      at <unknown source file>:<unknown line>
  12: cast::cmd::send::SendTxArgs::run::{{closure}}::hc1438f848c883c38
      at <unknown source file>:<unknown line>
  13: cast::main_args::{{closure}}::h2e37ee90dd7f2b39
      at <unknown source file>:<unknown line>
  14: cast::main::h2b4eb868126c50b1
      at <unknown source file>:<unknown line>
  15: std::sys::backtrace::__rust_begin_short_backtrace::hbb929486468dcc60
      at <unknown source file>:<unknown line>
  16: main<unknown>
      at <unknown source file>:<unknown line>
  17: __libc_start_main<unknown>
      at <unknown source file>:<unknown line>
  18: _start<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
Aborted

Related issue: #9917

@ethever ethever added T-bug Type: bug T-needs-triage Type: this issue needs to be labelled labels Feb 19, 2025
@github-project-automation github-project-automation bot moved this to Todo in Foundry Feb 19, 2025
@grandizzy grandizzy marked this as a duplicate of #9917 Feb 19, 2025
@zerosnacks zerosnacks changed the title cast --private-key --auth --create [CODE] bug(cast) cast send --private-key --auth --create [CODE] incompatible, panics Feb 19, 2025
@zerosnacks zerosnacks added C-cast Command: cast T-to-investigate Type: to investigate and removed T-needs-triage Type: this issue needs to be labelled labels Feb 19, 2025
@zerosnacks
Copy link
Member

Able to reproduce panic with given setup against Anvil w/ --hardfork prague

@grandizzy grandizzy removed the T-to-investigate Type: to investigate label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cast Command: cast T-bug Type: bug
Projects
Status: Todo
Development

No branches or pull requests

3 participants