Skip to content

Commit 9f445a5

Browse files
Format Rust code using rustfmt
1 parent 140f94b commit 9f445a5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/wallet.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2562,30 +2562,30 @@ pub fn encode_usdc_paymaster_data(
25622562
// - address: USDC token address
25632563
// - uint256: permit amount
25642564
// - bytes: permit signature (empty for now, needs EIP-2612 implementation)
2565-
2565+
25662566
// Mode byte (0 for permit mode)
25672567
data.push(0u8);
2568-
2568+
25692569
// Token address (USDC)
25702570
data.extend_from_slice(token_address.as_slice());
2571-
2571+
25722572
// Permit amount - use a reasonable amount for gas payment (10 USDC worth)
25732573
let permit_amount = U256::from(10_000_000u64); // 10 USDC (6 decimals)
25742574
data.extend_from_slice(&permit_amount.to_be_bytes::<32>());
2575-
2575+
25762576
// TODO: Implement EIP-2612 permit signature
25772577
// For now, we'll try with an empty signature to see if that changes the error
25782578
// In production, this would need to be a valid permit signature allowing
25792579
// the paymaster to spend USDC on behalf of the TBA
2580-
2580+
25812581
// Note: The permit signature would typically be generated by signing:
25822582
// - owner: TBA address
2583-
// - spender: paymaster address
2583+
// - spender: paymaster address
25842584
// - value: permit_amount
25852585
// - nonce: current permit nonce from USDC contract
25862586
// - deadline: future timestamp
2587-
2587+
25882588
// For testing, let's try without the signature first to see if we get a different error
2589-
2589+
25902590
data
25912591
}

0 commit comments

Comments
 (0)