Skip to content

Commit

Permalink
fix: submit eip1559 transactions (#3973)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezs committed Sep 8, 2023
1 parent 57b2d5a commit 4d3c186
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engine/src/eth/retry_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl EthersRetryRpcApi for EthersRetryRpcClient {
);

client
.send_transaction(transaction_request.into())
.send_transaction(transaction_request)
.await
.context("Failed to send ETH transaction")
})
Expand Down
4 changes: 2 additions & 2 deletions engine/src/eth/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub trait EthRpcApi: Send {

async fn estimate_gas(&self, req: &TypedTransaction) -> Result<U256>;

async fn send_transaction(&self, tx: TransactionRequest) -> Result<TxHash>;
async fn send_transaction(&self, tx: Eip1559TransactionRequest) -> Result<TxHash>;

async fn get_logs(&self, filter: Filter) -> Result<Vec<Log>>;

Expand Down Expand Up @@ -141,7 +141,7 @@ impl EthRpcApi for EthRpcClient {
Ok(self.signer.estimate_gas(req, None).await?)
}

async fn send_transaction(&self, mut tx: TransactionRequest) -> Result<TxHash> {
async fn send_transaction(&self, mut tx: Eip1559TransactionRequest) -> Result<TxHash> {
tx.nonce = Some(self.get_next_nonce().await?);

let res = self.signer.send_transaction(tx, None).await;
Expand Down

0 comments on commit 4d3c186

Please sign in to comment.