Skip to content

Commit

Permalink
refactor: renamed local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
heueristik committed Nov 15, 2023
1 parent 4f55e7d commit 13558cc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/subgraph/src/packages/multisig/multisig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@ export function _handleProposalCreated(
proposalEntity.allowFailureMap = event.params.allowFailureMap;

let contract = Multisig.bind(event.address);
let vote = contract.try_getProposal(pluginProposalId);
let proposal = contract.try_getProposal(pluginProposalId);

if (!vote.reverted) {
proposalEntity.executed = vote.value.value0;
proposalEntity.approvals = vote.value.value1;
if (!proposal.reverted) {
proposalEntity.executed = proposal.value.value0;
proposalEntity.approvals = proposal.value.value1;

// ProposalParameters
let parameters = vote.value.value2;
let parameters = proposal.value.value2;
proposalEntity.minApprovals = parameters.minApprovals;
proposalEntity.snapshotBlock = parameters.snapshotBlock;
proposalEntity.approvalReached = false;

// Actions
let actions = vote.value.value3;
let actions = proposal.value.value3;
for (let index = 0; index < actions.length; index++) {
const action = actions[index];

Expand Down

0 comments on commit 13558cc

Please sign in to comment.