diff --git a/chains/ethereum/server/src/client.rs b/chains/ethereum/server/src/client.rs index 1c1661e1..e9f26634 100644 --- a/chains/ethereum/server/src/client.rs +++ b/chains/ethereum/server/src/client.rs @@ -304,14 +304,14 @@ where } else { self.backend.get_transaction_count(from, AtBlock::Latest).await? }; - let tx = CallRequest { + let mut tx = CallRequest { from: Some(from), to, gas_limit: None, gas_price: None, value: Some(U256(options.amount)), data: Some(options.data.clone().into()), - nonce: Some(nonce), + nonce: None, chain_id: None, // Astar doesn't support this field for eth_call max_priority_fee_per_gas: Some(max_priority_fee_per_gas), access_list: AccessList::default(), @@ -325,6 +325,8 @@ where u64::try_from(gas_limit).unwrap_or(u64::MAX) }; + tx.nonce = Some(nonce); + Ok(EthereumMetadata { chain_id, nonce,