Skip to content

Commit 5e6e03f

Browse files
committed
Account for dynamic/managed factory overheads
1 parent 3140ed7 commit 5e6e03f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Thirdweb/Core/Scripts/AccountAbstraction/Core/SmartWallet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ private async Task<RpcResponseMessage> CreateUserOpAndSend(RpcRequestMessage req
213213
Nonce = await GetNonce(),
214214
InitCode = initCode,
215215
CallData = executeInput.Data.HexStringToByteArray(),
216-
CallGasLimit = transactionInput.Gas != null ? (transactionInput.Gas.Value < 21000 ? 100000 : transactionInput.Gas.Value) : 100000,
216+
CallGasLimit = 50000 + (transactionInput.Gas != null ? (transactionInput.Gas.Value < 21000 ? 100000 : transactionInput.Gas.Value) : 100000),
217217
VerificationGasLimit = 100000 + gas,
218218
PreVerificationGas = 21000,
219219
MaxFeePerGas = latestBlock.BaseFeePerGas.Value * 2 + BigInteger.Parse("1500000000"),

0 commit comments

Comments
 (0)