Skip to content

Commit

Permalink
Code Formating with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
remedcu committed Feb 15, 2021
1 parent 87d1b0a commit 6caff51
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
10 changes: 5 additions & 5 deletions contracts/mockup/DummyContract.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pragma solidity ^0.5.17;

contract DummyContract {

function approveTokens(address cSOV1, address cSOV2, address SOV) public {

}

function approveTokens(
address cSOV1,
address cSOV2,
address SOV
) public {}
}
1 change: 0 additions & 1 deletion tests-js/vesting/Vesting.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,6 @@ contract("Vesting", (accounts) => {

let vestingBalance = await staking.balanceOf(vesting.address);
expect(vestingBalance).to.be.bignumber.equal(new BN(0));

});
});

Expand Down
12 changes: 6 additions & 6 deletions tests-js/vesting/VestingRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ contract("VestingRegistry", (accounts) => {
});

it("fails if sender isn't an owner", async () => {
await expectRevert(vestingRegistry.setVestingFactory(account2, {from: account2}), "unauthorized");
await expectRevert(vestingRegistry.setVestingFactory(account2, { from: account2 }), "unauthorized");
});
});

Expand All @@ -192,15 +192,15 @@ contract("VestingRegistry", (accounts) => {
let tx = await vestingRegistry.addAdmin(account1);

expectEvent(tx, "AdminAdded", {
admin: account1
admin: account1,
});

let isAdmin = await vestingRegistry.admins(account1);
expect(isAdmin).equal(true);
});

it("fails sender isn't an owner", async () => {
await expectRevert(vestingRegistry.addAdmin(account1, {from: account1}), "unauthorized");
await expectRevert(vestingRegistry.addAdmin(account1, { from: account1 }), "unauthorized");
});
});

Expand All @@ -210,15 +210,15 @@ contract("VestingRegistry", (accounts) => {
let tx = await vestingRegistry.removeAdmin(account1);

expectEvent(tx, "AdminRemoved", {
admin: account1
admin: account1,
});

let isAdmin = await vestingRegistry.admins(account1);
expect(isAdmin).equal(false);
});

it("fails sender isn't an owner", async () => {
await expectRevert(vestingRegistry.removeAdmin(account1, {from: account1}), "unauthorized");
await expectRevert(vestingRegistry.removeAdmin(account1, { from: account1 }), "unauthorized");
});
});

Expand All @@ -238,7 +238,7 @@ contract("VestingRegistry", (accounts) => {
});

it("fails if sender isn't an owner", async () => {
await expectRevert(vestingRegistry.setCSOVtokens([cSOV1.address, cSOV2.address], {from: account2}), "unauthorized");
await expectRevert(vestingRegistry.setCSOVtokens([cSOV1.address, cSOV2.address], { from: account2 }), "unauthorized");
});
});

Expand Down

0 comments on commit 6caff51

Please sign in to comment.