Skip to content

Commit 5328864

Browse files
authored
Speed up ops (#77)
1 parent 791be46 commit 5328864

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Thirdweb/Thirdweb.Transactions/ThirdwebTransaction.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,6 @@ public static async Task<BigInteger> EstimateGasLimit(ThirdwebTransaction transa
298298
var hex = (await rpc.SendRequestAsync<JToken>("zks_estimateFee", transaction.Input).ConfigureAwait(false))["gas_limit"].ToString();
299299
return new HexBigInteger(hex).Value * 10 / 5;
300300
}
301-
302-
if (transaction._wallet.AccountType == ThirdwebAccountType.SmartAccount)
303-
{
304-
var smartAccount = transaction._wallet as SmartWallet;
305-
return await smartAccount.EstimateUserOperationGas(transaction.Input).ConfigureAwait(false);
306-
}
307301
else
308302
{
309303
var hex = await rpc.SendRequestAsync<string>("eth_estimateGas", transaction.Input, "latest").ConfigureAwait(false);

0 commit comments

Comments
 (0)