From 9cb13b56a9346a693078de315bd45016fdc20280 Mon Sep 17 00:00:00 2001 From: Giacomo Date: Mon, 1 Jul 2024 23:30:02 +0200 Subject: [PATCH] refactor(excubiae): optimize constructor to reduce gas cost for SemaphoreExcubia deploy --- packages/excubiae/contracts/extensions/SemaphoreExcubia.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/excubiae/contracts/extensions/SemaphoreExcubia.sol b/packages/excubiae/contracts/extensions/SemaphoreExcubia.sol index bed1904..9f4ac09 100644 --- a/packages/excubiae/contracts/extensions/SemaphoreExcubia.sol +++ b/packages/excubiae/contracts/extensions/SemaphoreExcubia.sol @@ -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; }