Skip to content

Commit 145c04c

Browse files
committed
yarn format
1 parent 8d8fdd2 commit 145c04c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/contracts/contracts/utils/Governable.sol

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ contract Governable {
6464
/// @notice Checks if the vote JobId are valid.
6565
modifier areValidVotes(Vote[] memory votes) {
6666
for (uint i = 0; i < votes.length; i++) {
67-
require(votes[i].jobId > jobId, "Governable: JobId of vote must be greater than current jobId");
67+
require(
68+
votes[i].jobId > jobId,
69+
"Governable: JobId of vote must be greater than current jobId"
70+
);
6871
require(
6972
votes[i].proposedGovernor != address(0x0),
7073
"Governable: Proposed governor cannot be the zero address"

packages/contracts/test/governance/governable.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ describe('Governable Contract', () => {
117117
});
118118

119119
it('should vote validly and change the governor', async () => {
120-
121120
assert.strictEqual((await governableInstance.jobId()).toString(), '0');
122121
const wallet = ethers.Wallet.createRandom();
123122
const key = ec.keyFromPrivate(wallet.privateKey.slice(2), 'hex');
@@ -168,7 +167,6 @@ describe('Governable Contract', () => {
168167
);
169168
await tx.wait();
170169

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

0 commit comments

Comments
 (0)