Skip to content

Commit

Permalink
yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
salman01zp committed May 7, 2024
1 parent 8d8fdd2 commit 145c04c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/contracts/contracts/utils/Governable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ contract Governable {
/// @notice Checks if the vote JobId are valid.
modifier areValidVotes(Vote[] memory votes) {
for (uint i = 0; i < votes.length; i++) {
require(votes[i].jobId > jobId, "Governable: JobId of vote must be greater than current jobId");
require(
votes[i].jobId > jobId,
"Governable: JobId of vote must be greater than current jobId"
);
require(
votes[i].proposedGovernor != address(0x0),
"Governable: Proposed governor cannot be the zero address"
Expand Down
2 changes: 0 additions & 2 deletions packages/contracts/test/governance/governable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ describe('Governable Contract', () => {
});

it('should vote validly and change the governor', async () => {

assert.strictEqual((await governableInstance.jobId()).toString(), '0');
const wallet = ethers.Wallet.createRandom();
const key = ec.keyFromPrivate(wallet.privateKey.slice(2), 'hex');
Expand Down Expand Up @@ -168,7 +167,6 @@ describe('Governable Contract', () => {
);
await tx.wait();


assert.strictEqual((await governableInstance.jobId()).toString(), '2');
await network.provider.send('evm_increaseTime', [600]);

Expand Down

0 comments on commit 145c04c

Please sign in to comment.