Skip to content

Commit ef3c2c7

Browse files
committed
yarn format
1 parent c22840d commit ef3c2c7

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

packages/contracts/contracts/SignatureBridge.sol

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ contract SignatureBridge is Governable, ChainIdWithType, ProposalNonceTracker {
4848
/// @param initialGovernor Addresses that should be initially granted the relayer role.
4949
/// @param jobId JobId of the governor.
5050
/// @param votingThreshold Number of votes required to force set the governor.
51-
constructor(address initialGovernor, uint32 jobId, uint32 votingThreshold) Governable(initialGovernor, jobId, votingThreshold) {}
51+
constructor(
52+
address initialGovernor,
53+
uint32 jobId,
54+
uint32 votingThreshold
55+
) Governable(initialGovernor, jobId, votingThreshold) {}
5256

5357
/// @notice Sets a new resource for handler contracts that use the IExecutor interface,
5458
/// and maps the {handlerAddress} to {newResourceID} in {_resourceIdToHandlerAddress}.

packages/contracts/contracts/utils/Governable.sol

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ contract Governable {
4444
address indexed newOwner,
4545
uint32 indexed jobId,
4646
uint256 timestamp
47-
4847
);
4948
event RecoveredAddress(address indexed recovered);
5049

@@ -62,14 +61,10 @@ contract Governable {
6261
_;
6362
}
6463

65-
6664
/// @notice Checks if the vote nonces are valid.
6765
modifier areValidVotes(Vote[] memory votes) {
6866
for (uint i = 0; i < votes.length; i++) {
69-
require(
70-
votes[i].jobId < jobId,
71-
"Governable: JobId of vote must match jobId"
72-
);
67+
require(votes[i].jobId < jobId, "Governable: JobId of vote must match jobId");
7368
require(
7469
votes[i].proposedGovernor != address(0x0),
7570
"Governable: Proposed governor cannot be the zero address"
@@ -131,12 +126,7 @@ contract Governable {
131126
bytes32 pubKeyHash = keccak256(_publicKey);
132127
address newOwner = address(uint160(uint256(pubKeyHash)));
133128
require(
134-
isSignatureFromGovernor(
135-
abi.encodePacked(
136-
_publicKey
137-
),
138-
_sig
139-
),
129+
isSignatureFromGovernor(abi.encodePacked(_publicKey), _sig),
140130
"Governable: caller is not the governor"
141131
);
142132
_transferOwnership(newOwner, _jobId);
@@ -173,7 +163,7 @@ contract Governable {
173163
}
174164
}
175165
}
176-
166+
177167
/// @notice Process a vote
178168
/// @param vote A vote struct
179169
/// @param voter The address of the voter
@@ -247,6 +237,4 @@ contract Governable {
247237
) public pure returns (Vote memory) {
248238
return Vote(_jobId, _proposedGovernor);
249239
}
250-
251-
252240
}

packages/vbridge/src/SignatureBridgeSide.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class SignatureBridgeSide<A extends BaseContract> implements IBridgeSide
4343
* @param admin - The deployer and governor upon creation.
4444
*/
4545
public static async createBridgeSide<A extends BaseContract>(
46-
admin: ethers.Wallet,
46+
admin: ethers.Wallet
4747
): Promise<SignatureBridgeSide<A>> {
4848
const bridgeFactory = new SignatureBridge__factory(admin);
4949
const deployedBridge = await bridgeFactory.deploy(admin.address, 0, 1);
@@ -60,7 +60,7 @@ export class SignatureBridgeSide<A extends BaseContract> implements IBridgeSide
6060
public static async create2BridgeSide<A extends BaseContract>(
6161
deployer: Deployer,
6262
saltHex: string,
63-
admin: ethers.Wallet,
63+
admin: ethers.Wallet
6464
): Promise<SignatureBridgeSide<A>> {
6565
const argTypes = ['address', 'uint32'];
6666
const args = [admin.address, 0, 1];

0 commit comments

Comments
 (0)