From 26572d41768695055eace80720c75ef03f8140c8 Mon Sep 17 00:00:00 2001 From: Alex Sedighi Date: Sun, 22 Sep 2024 21:43:30 +0000 Subject: [PATCH] chore(Grants): emit event before intraction --- src/Grants.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Grants.sol b/src/Grants.sol index c85518b..259f444 100644 --- a/src/Grants.sol +++ b/src/Grants.sol @@ -91,9 +91,9 @@ contract Grants { } vestingSchedules[to][page].push(schedule); - token.safeTransferFrom(msg.sender, address(this), perPeriodAmount * periodCount); - emit VestingScheduleAdded(to, schedule); + + token.safeTransferFrom(msg.sender, address(this), perPeriodAmount * periodCount); } /**