File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2556,6 +2556,7 @@ pub fn encode_usdc_paymaster_data(
2556
2556
let mut data = Vec :: new ( ) ;
2557
2557
data. extend_from_slice ( paymaster. as_slice ( ) ) ;
2558
2558
2559
+ <<<<<<< HEAD
2559
2560
// Add paymaster-specific data for Circle's TokenPaymaster v0.8
2560
2561
// Format: encodePacked([uint8, address, uint256, bytes])
2561
2562
// - uint8: mode (0 for permit mode)
@@ -2587,5 +2588,17 @@ pub fn encode_usdc_paymaster_data(
2587
2588
2588
2589
// For testing, let's try without the signature first to see if we get a different error
2589
2590
2591
+ =======
2592
+ // Add paymaster-specific data
2593
+ // For Circle's paymaster on Base, we only include the token address
2594
+ // The paymaster will calculate the gas cost internally
2595
+
2596
+ // Token address (USDC)
2597
+ data. extend_from_slice( token_address. as_slice( ) ) ;
2598
+
2599
+ // Note: Circle's paymaster may expect additional data, but based on
2600
+ // the error we're getting, let's try with just the token address
2601
+
2602
+ >>>>>>> aa42c9fcc0514fae774d56a2a6298e2e917ea896
2590
2603
data
2591
2604
}
You can’t perform that action at this time.
0 commit comments