From 87e52981bbf287203df1d3f2d1f8a38e121c6e6d Mon Sep 17 00:00:00 2001 From: 0xFirekeeper <0xFirekeeper@gmail.com> Date: Thu, 30 May 2024 01:12:03 +0300 Subject: [PATCH] cleanup --- Thirdweb/Thirdweb.Wallets/SmartWallet/SmartWallet.cs | 2 +- .../SmartWallet/Thirdweb.AccountAbstraction/BundlerClient.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Thirdweb/Thirdweb.Wallets/SmartWallet/SmartWallet.cs b/Thirdweb/Thirdweb.Wallets/SmartWallet/SmartWallet.cs index e77c0aa..3e14a6e 100644 --- a/Thirdweb/Thirdweb.Wallets/SmartWallet/SmartWallet.cs +++ b/Thirdweb/Thirdweb.Wallets/SmartWallet/SmartWallet.cs @@ -251,7 +251,7 @@ private async Task GetPaymasterInput(ThirdwebTransactionInput transactio { if (_gasless) { - var paymasterInput = await BundlerClient.PMSponsorTransaction(_client, _paymasterUrl, 1, transactionInput, _entryPointContract.Address); + var paymasterInput = await BundlerClient.PMSponsorTransaction(_client, _paymasterUrl, 1, transactionInput); return paymasterInput.paymasterInput.HexToByteArray(); } else diff --git a/Thirdweb/Thirdweb.Wallets/SmartWallet/Thirdweb.AccountAbstraction/BundlerClient.cs b/Thirdweb/Thirdweb.Wallets/SmartWallet/Thirdweb.AccountAbstraction/BundlerClient.cs index 4c942c1..33a0818 100644 --- a/Thirdweb/Thirdweb.Wallets/SmartWallet/Thirdweb.AccountAbstraction/BundlerClient.cs +++ b/Thirdweb/Thirdweb.Wallets/SmartWallet/Thirdweb.AccountAbstraction/BundlerClient.cs @@ -55,9 +55,9 @@ public static async Task PMSponsorUserOperation(Thir } } - public static async Task PMSponsorTransaction(ThirdwebClient client, string paymasterUrl, object requestId, ThirdwebTransactionInput userOp, string entryPoint) + public static async Task PMSponsorTransaction(ThirdwebClient client, string paymasterUrl, object requestId, ThirdwebTransactionInput txInput) { - var response = await BundlerRequest(client, paymasterUrl, requestId, "pm_sponsorTransaction", userOp, new EntryPointWrapper() { entryPoint = entryPoint }); + var response = await BundlerRequest(client, paymasterUrl, requestId, "pm_sponsorTransaction", txInput); try { return JsonConvert.DeserializeObject(response.Result.ToString());