Skip to content

Commit

Permalink
fix: fill up array
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaShWoof committed Jul 31, 2024
1 parent 8c9f4b0 commit a27e954
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ export default migration('1722358576_launch_franchaisers', {
async () => trace((await governor.propose(...await proposal(actions, description))))
);

for (let i = 0; i < chosenAddresses.length; i++) {
votesBefore.push(await COMP.getCurrentVotes(
chosenAddresses[i]
));
}

const event = txn.events.find(event => event.event === 'ProposalCreated');
const [proposalId] = event.args;

Expand All @@ -96,7 +102,7 @@ export default migration('1722358576_launch_franchaisers', {
'function fundMany(address[] calldata delegatees, uint256[] calldata amounts) external returns(address[] memory franchisers)',
'function getFranchiser(address,address) external view returns(address)',
],
ethers.getDefaultProvider(1)
ethers.getDefaultProvider()
);

for (let i = 0; i < chosenAddresses.length; i++) {
Expand Down

0 comments on commit a27e954

Please sign in to comment.