diff --git a/.husky/pre-commit b/.husky/pre-commit index 24afa67..25c3042 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,5 @@ -yarn clean -yarn compile -yarn check -yarn test +yarn clean +yarn compile +yarn check +yarn test yarn ci \ No newline at end of file diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index f571b82..67296b3 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/biome.json b/biome.json index 7dc98b9..a8df9d8 100644 --- a/biome.json +++ b/biome.json @@ -15,7 +15,8 @@ "./artifacts", "./cache", "./node_modules", - "./coverage" + "./coverage", + "./coverage.json" ] } } diff --git a/contracts/ApplicationManager.sol b/contracts/ApplicationManager.sol index a6a87f3..a285761 100644 --- a/contracts/ApplicationManager.sol +++ b/contracts/ApplicationManager.sol @@ -13,6 +13,7 @@ contract ApplicationManager is IApplicationManager { function applicationExists(uint id) internal view returns (bool) { return applications[id].account != address(0); } + function getNextApplicationId() external view returns (uint) { return nextApplicationId; } @@ -79,7 +80,5 @@ contract ApplicationManager is IApplicationManager { finalResult[i] = result[i]; } return finalResult; - - return result; } } diff --git a/package.json b/package.json index a8d87bd..121f01c 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "test": "npx hardhat test", "coverage": "SOLIDITY_COVERAGE=true npx hardhat coverage", "ci": "npx biome ci", - "format": "npx biome check --write" + "format": "npx biome check --write", + "prepare": "husky" } } diff --git a/test/ApplicationManager.ts b/test/ApplicationManager.ts index 36e51b1..522ee57 100644 --- a/test/ApplicationManager.ts +++ b/test/ApplicationManager.ts @@ -321,8 +321,8 @@ describe("ApplicationManager", () => { it("Should return no applications if all within range are deleted", async () => { await contract.write.deleteApplication([parseUnits("0", 0)]); - await contract.write.deleteApplication([parseUnits("2", 0)]); await contract.write.deleteApplication([parseUnits("1", 0)]); + await contract.write.deleteApplication([parseUnits("2", 0)]); await contract.write.deleteApplication([parseUnits("3", 0)]); await contract.write.deleteApplication([parseUnits("4", 0)]); await contract.write.deleteApplication([parseUnits("5", 0)]);