@@ -3,7 +3,7 @@ pragma solidity ^0.8.9;
3
3
4
4
import "@openzeppelin/contracts/interfaces/IERC20.sol " ;
5
5
import "@account-abstraction/contracts/samples/SimpleAccount.sol " ;
6
- import { AutomateReady } from "../automate/contracts/integrations/AutomateReady.sol " ;
6
+ import {AutomateReady} from "../automate/contracts/integrations/AutomateReady.sol " ;
7
7
import "./AttestationStation.sol " ;
8
8
9
9
// added some starter code
@@ -39,7 +39,7 @@ contract MainWallet is SimpleAccount, AutomateReady {
39
39
address public newAccount; // new wallet if user lost the current wallet
40
40
41
41
// _automate for Optimism Goerli - 0x255F82563b5973264e89526345EcEa766DB3baB2
42
- // _taskCreator will be this.address
42
+ // _taskCreator will be this.address
43
43
constructor (
44
44
IEntryPoint anEntryPoint ,
45
45
address _attestationStation ,
@@ -64,7 +64,7 @@ contract MainWallet is SimpleAccount, AutomateReady {
64
64
newInfo.paymentAmount = _amount;
65
65
newInfo.token = _token;
66
66
newInfo.period = _period;
67
- newInfo.lastPaymentBlock - _firstPaymentBlock;
67
+ newInfo.lastPaymentBlock = _firstPaymentBlock;
68
68
69
69
payees.push (_payeeWallet);
70
70
reccuringPayments[_payeeWallet] = newInfo;
@@ -98,7 +98,7 @@ contract MainWallet is SimpleAccount, AutomateReady {
98
98
IERC20 (info.token).transfer (_payeeWallet, info.paymentAmount);
99
99
reccuringPayments[_payeeWallet].lastPaymentBlock += block .number ;
100
100
101
- // Use this to pay for Gelato fee
101
+ // Use this to pay for Gelato fee
102
102
(uint256 fee , address feeToken ) = _getFeeDetails ();
103
103
_transfer (fee, feeToken);
104
104
0 commit comments