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 d35c506 commit 5fffba4Copy full SHA for 5fffba4
src/services/provider/evm/mod.rs
@@ -265,7 +265,11 @@ impl TryFrom<&EvmTransactionData> for TransactionRequest {
265
// .map_err(|_| TransactionError::InvalidType("Invalid gas
266
// limit".to_string()))?, ),
267
value: Some(Uint::<256, 4>::from(tx.value)),
268
- input: TransactionInput::from(tx.data.clone().unwrap_or("".to_string()).into_bytes()),
+ input: TransactionInput::from(
269
+ hex::decode(tx.data.clone().unwrap_or("".to_string()).into_bytes()).map_err(
270
+ |e| TransactionError::InvalidType(format!("Invalid hex data: {}", e)),
271
+ )?,
272
+ ),
273
nonce: Some(
274
Uint::<256, 4>::from(tx.nonce.ok_or_else(|| {
275
TransactionError::InvalidType("Nonce must be defined".to_string())
0 commit comments