Skip to content

Commit a275248

Browse files
committed
chore: cleanup unintended changes
1 parent c7aa1ab commit a275248

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

programs/omnibus-scripts/generators/access-control.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const encodeFromAgentGrantRole = async (
1010
account: string,
1111
) => {
1212
const roleHash = await getRoleHash(contract, role);
13+
1314
return encodeFromAgent({
1415
to: await contract.getAddress(),
1516
data: contract.interface.encodeFunctionData('grantRole', [roleHash, account]),
@@ -24,6 +25,7 @@ export const encodeFromAgentGrantRolesAccessControlWithConfirm = async (
2425
rolesBeneficiary: string,
2526
) => {
2627
printRoles(contractName, rolesToGrant);
28+
2729
if (await confirmRoleGranting()) {
2830
logger.log();
2931
return await encodeFromAgentGrantRolesAccessControl(contractName, rolesToGrant, contract, rolesBeneficiary);

programs/omnibus-scripts/generators/pause-until.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { aragonAgentAddress } from '@contracts';
66

77
export const encodeUnpauseIfPaused = async (contractName: string, contract: Contract) => {
88
const isPaused = await contract.isPaused();
9+
910
if (isPaused) {
1011
logger.log('Contract is paused. Preparing scripts');
1112
return await encodeScriptsResume(contractName, contract);
@@ -22,6 +23,7 @@ export const encodeScriptsResume = async (contractName: string, contract: Contra
2223
'RESUME_ROLE',
2324
aragonAgentAddress,
2425
);
26+
2527
const [, resumeWQCall] = await encodeFromAgentResume(contractName, contract);
2628
return [grantResumeRoleCall, resumeWQCall];
2729
};

scripts/voting.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const votingNewVote = (votingData: string, votingDesc: string = '') => {
1616
to: votingAddress,
1717
data: votingContract.interface.encodeFunctionData('newVote(bytes, string)', [votingData, votingDesc]),
1818
};
19+
1920
const encoded = encodeCallScript([call]);
2021
return [encoded, call] as const;
2122
};

utils/role-hash.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { wallet } from '@providers';
33

44
export const getRoleHash = async (contract: Contract, role: string): Promise<string> => {
55
if (isHexString(role)) return role;
6-
76
return await contract[role]();
87
};
98

utils/voting.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { waitWithProgressBar } from './progress-bar';
77
export const forwardVoteFromTm = async (votingCalldata: string) => {
88
const tx = await contractCallTxWithConfirm(tmContract, 'forward', [votingCalldata]);
99
if (tx == null) return;
10-
1110
logger.success('Vote started');
1211

1312
return await voteLastVoting();

0 commit comments

Comments
 (0)