Skip to content

Commit 5c2825f

Browse files
committed
wip
1 parent a3766ef commit 5c2825f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/wallet.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2462,14 +2462,14 @@ impl UserOperationBuilder {
24622462

24632463
/// Set paymaster and paymaster data with EIP-2612 permit signature
24642464
pub fn paymaster_with_permit<S: Signer>(
2465-
mut self,
2465+
&mut self,
24662466
paymaster: EthAddress,
24672467
token_address: EthAddress,
24682468
max_cost: U256,
24692469
tba_address: EthAddress,
24702470
signer: &S,
24712471
provider: &Provider,
2472-
) -> Result<Self, WalletError> {
2472+
) -> Result<(), WalletError> {
24732473
// Generate paymaster data with real permit signature
24742474
let paymaster_data = encode_usdc_paymaster_data_with_signer(
24752475
paymaster,
@@ -2479,11 +2479,11 @@ impl UserOperationBuilder {
24792479
signer,
24802480
provider,
24812481
)?;
2482-
2482+
24832483
// Set the combined paymaster and data
24842484
self.paymaster_and_data = paymaster_data;
2485-
2486-
Ok(self)
2485+
2486+
Ok(())
24872487
}
24882488
}
24892489

0 commit comments

Comments
 (0)