Skip to content

Commit

Permalink
fix directory test
Browse files Browse the repository at this point in the history
  • Loading branch information
JCSanPedro committed Aug 8, 2024
1 parent 83d1109 commit 99976b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/IDirectory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ interface IDirectory {

function getDirectoryStake(uint256 cycleId, uint256 periodId, address node) external view returns (uint256);

function getEntries(uint256 cycleId, uint256 periodId) external view returns (address [] memory, uint256[] memory);
function getEntries(uint256 cycleId, uint256 periodId) external view returns (address[] memory, uint256[] memory);
}
3 changes: 1 addition & 2 deletions test/Directory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,6 @@ describe('Directory', () => {
expect(entries[0][i]).to.equal(await accounts[i].getAddress());
expect(entries[1][i]).to.equal(100 + 100 * i);
}

console.log(entries);
});

it('directory supports correct interfaces', async () => {
Expand All @@ -680,6 +678,7 @@ describe('Directory', () => {
'function scanWithTime(uint128 point, uint256 rewardCycleId, uint256 stakingPeriodId) external returns (address)',
'function joinNextDirectory() external',
'function getDirectoryStake(uint256 cycle, uint256 period, address node) external view returns (uint256)',
'function getEntries(uint256 cycleId, uint256 periodId) external view returns (address[] memory, uint256[] memory)',
];

const interfaceId = getInterfaceId(abi);
Expand Down

0 comments on commit 99976b1

Please sign in to comment.