Skip to content

Commit

Permalink
refactor(excubiae): optimize constructor to reduce gas cost for Semap…
Browse files Browse the repository at this point in the history
…horeExcubia deploy
  • Loading branch information
0xjei committed Jul 3, 2024
1 parent aa238fb commit 9cb13b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract SemaphoreExcubia is Excubia {

SEMAPHORE = ISemaphore(_semaphore);

if (SEMAPHORE.groupCounter() < _groupId) revert InvalidGroup();
if (ISemaphore(_semaphore).groupCounter() < _groupId) revert InvalidGroup();

GROUP_ID = _groupId;
}
Expand Down

0 comments on commit 9cb13b5

Please sign in to comment.