@@ -2479,15 +2479,13 @@ impl UserOperationBuilder {
2479
2479
signer : & S ,
2480
2480
provider : & Provider ,
2481
2481
) -> Result < ( ) , WalletError > {
2482
- // Generate paymaster data with real permit signature
2483
- let paymaster_data = encode_usdc_paymaster_data_with_signer (
2482
+ // Use simple Circle format - no permit signature needed
2483
+ // The TBA has already approved the paymaster to spend USDC
2484
+ let paymaster_data = encode_circle_paymaster_data (
2484
2485
paymaster,
2485
- token_address,
2486
- max_cost,
2487
- tba_address,
2488
- signer,
2489
- provider,
2490
- ) ?;
2486
+ 500_000 , // Default verification gas limit
2487
+ 300_000 , // Default call gas limit
2488
+ ) ;
2491
2489
2492
2490
// Set the combined paymaster and data
2493
2491
self . paymaster_and_data = paymaster_data;
@@ -2685,6 +2683,8 @@ pub fn get_usdc_permit_nonce(
2685
2683
}
2686
2684
2687
2685
/// Encode paymaster data for USDC payment with EIP-2612 permit signature
2686
+ /// DEPRECATED - We don't use permit signatures anymore, only simple format
2687
+ /*
2688
2688
pub fn encode_usdc_paymaster_data_with_signer<S: Signer>(
2689
2689
paymaster: EthAddress,
2690
2690
token_address: EthAddress,
@@ -2736,6 +2736,7 @@ pub fn encode_usdc_paymaster_data_with_signer<S: Signer>(
2736
2736
2737
2737
Ok(data)
2738
2738
}
2739
+ */
2739
2740
2740
2741
/// Encode paymaster data for USDC payment (keeping old function for compatibility)
2741
2742
/// This version uses a dummy signature and will fail with AA33
@@ -2846,6 +2847,8 @@ pub fn create_multicall_permit_and_execute(
2846
2847
2847
2848
/// Encode paymaster data for USDC payment with on-chain permit (for TBAs)
2848
2849
/// This version doesn't include a permit signature since TBAs will call permit on-chain
2850
+ /// DEPRECATED - We only use the simple Circle format now
2851
+ /*
2849
2852
pub fn encode_usdc_paymaster_data_for_tba(
2850
2853
paymaster: EthAddress,
2851
2854
token_address: EthAddress,
@@ -2874,3 +2877,4 @@ pub fn encode_usdc_paymaster_data_for_tba(
2874
2877
2875
2878
data
2876
2879
}
2880
+ */
0 commit comments