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
Copy file name to clipboardexpand all lines: crates/cast/bin/tx.rs
+7-3
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
use alloy_consensus::{SidecarBuilder,SimpleCoder};
2
2
use alloy_json_abi::Function;
3
3
use alloy_network::{AnyNetwork,TransactionBuilder};
4
-
use alloy_primitives::{hex,Address,TxKind};
4
+
use alloy_primitives::{hex,Address,Bytes,TxKind};
5
5
use alloy_provider::Provider;
6
-
use alloy_rpc_types::TransactionRequest;
6
+
use alloy_rpc_types::{TransactionInput,TransactionRequest};
7
7
use alloy_serde::WithOtherFields;
8
8
use alloy_transport::Transport;
9
9
use eyre::Result;
@@ -232,7 +232,11 @@ where
232
232
let from = from.into().resolve(&self.provider).await?;
233
233
234
234
self.tx.set_kind(self.state.kind);
235
-
self.tx.set_input(self.state.input);
235
+
236
+
// we set both fields to the same value because some nodes only accept the legacy `data` field: <https://github.com/foundry-rs/foundry/issues/7764#issuecomment-2210453249>
0 commit comments