Skip to content

Commit 6d2323e

Browse files
committed
fix: bug
1 parent 5ada551 commit 6d2323e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hardhat/contracts/MainWallet.sol

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pragma solidity ^0.8.9;
33

44
import "@openzeppelin/contracts/interfaces/IERC20.sol";
55
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";
77
import "./AttestationStation.sol";
88

99
// added some starter code
@@ -39,7 +39,7 @@ contract MainWallet is SimpleAccount, AutomateReady {
3939
address public newAccount; // new wallet if user lost the current wallet
4040

4141
// _automate for Optimism Goerli - 0x255F82563b5973264e89526345EcEa766DB3baB2
42-
// _taskCreator will be this.address
42+
// _taskCreator will be this.address
4343
constructor(
4444
IEntryPoint anEntryPoint,
4545
address _attestationStation,
@@ -64,7 +64,7 @@ contract MainWallet is SimpleAccount, AutomateReady {
6464
newInfo.paymentAmount = _amount;
6565
newInfo.token = _token;
6666
newInfo.period = _period;
67-
newInfo.lastPaymentBlock - _firstPaymentBlock;
67+
newInfo.lastPaymentBlock = _firstPaymentBlock;
6868

6969
payees.push(_payeeWallet);
7070
reccuringPayments[_payeeWallet] = newInfo;
@@ -98,7 +98,7 @@ contract MainWallet is SimpleAccount, AutomateReady {
9898
IERC20(info.token).transfer(_payeeWallet, info.paymentAmount);
9999
reccuringPayments[_payeeWallet].lastPaymentBlock += block.number;
100100

101-
// Use this to pay for Gelato fee
101+
// Use this to pay for Gelato fee
102102
(uint256 fee, address feeToken) = _getFeeDetails();
103103
_transfer(fee, feeToken);
104104

0 commit comments

Comments
 (0)