Skip to content

Commit daf3d17

Browse files
committed
wipwip
2 parents 4658f09 + aa42c9f commit daf3d17

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/wallet.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2556,6 +2556,7 @@ pub fn encode_usdc_paymaster_data(
25562556
let mut data = Vec::new();
25572557
data.extend_from_slice(paymaster.as_slice());
25582558

2559+
<<<<<<< HEAD
25592560
// Add paymaster-specific data for Circle's TokenPaymaster v0.8
25602561
// Format: encodePacked([uint8, address, uint256, bytes])
25612562
// - uint8: mode (0 for permit mode)
@@ -2587,5 +2588,17 @@ pub fn encode_usdc_paymaster_data(
25872588

25882589
// For testing, let's try without the signature first to see if we get a different error
25892590

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
25902603
data
25912604
}

0 commit comments

Comments
 (0)