Skip to content

Commit

Permalink
remove max_fee_per_gas, use default data
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Jul 10, 2024
1 parent 6ee5879 commit 10a67b7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/zksync/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub async fn new_eip712_transaction<
};

let max_cost = max_cost.ok_or_eyre("`max_cost` cannot be empty")?;
let data = tx.input.clone().into_input().ok_or_eyre("`data` cannot be empty")?;
let data = tx.input.clone().into_input().unwrap_or_default();
let custom_data = Eip712Meta::new().factory_deps(factory_deps);

let mut deploy_request = Eip712TransactionRequest::new()
Expand All @@ -111,7 +111,6 @@ pub async fn new_eip712_transaction<
.chain_id(chain_id)
.nonce(nonce)
.gas_price(gas_price)
.max_fee_per_gas(max_cost)
.data(data.to_ethers())
.custom_data(custom_data);

Expand Down Expand Up @@ -175,7 +174,7 @@ pub async fn estimate_gas<P: Provider<T, AnyNetwork>, T: Transport + Clone>(
} else {
provider.get_gas_price().await?
};
let data = tx.input.clone().into_input().ok_or_eyre("`data` cannot be empty")?;
let data = tx.input.clone().into_input().unwrap_or_default();
let custom_data = Eip712Meta::new().factory_deps(factory_deps);

let mut deploy_request = Eip712TransactionRequest::new()
Expand Down

0 comments on commit 10a67b7

Please sign in to comment.