We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b33d853 commit 193cf89Copy full SHA for 193cf89
src/services/provider/evm/mod.rs
@@ -450,7 +450,11 @@ impl TryFrom<&EvmTransactionData> for TransactionRequest {
450
// .map_err(|_| TransactionError::InvalidType("Invalid gas
451
// limit".to_string()))?, ),
452
value: Some(Uint::<256, 4>::from(tx.value)),
453
- input: TransactionInput::from(tx.data.clone().unwrap_or("".to_string()).into_bytes()),
+ input: TransactionInput::from(
454
+ hex::decode(tx.data.clone().unwrap_or("".to_string()).into_bytes()).map_err(
455
+ |e| TransactionError::InvalidType(format!("Invalid hex data: {}", e)),
456
+ )?,
457
+ ),
458
nonce: Some(
459
Uint::<256, 4>::from(tx.nonce.ok_or_else(|| {
460
TransactionError::InvalidType("Nonce must be defined".to_string())
0 commit comments