Skip to content

Commit 1874e69

Browse files
refactor: hashProposal proposal spread instead of array values
Co-authored-by: Aleksandr Shenshin <shenshin@me.com>
1 parent 1c02faa commit 1874e69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Governor.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ describe('RootDAO Contact', () => {
9191

9292
proposalId = await governor
9393
.connect(holders[0])
94-
.hashProposal(proposal[0], proposal[1], proposal[2], generateDescriptionHash(proposalDesc))
94+
.hashProposal(...proposal, generateDescriptionHash(proposalDesc))
9595

9696
const proposalTx = await governor.connect(holders[0]).propose(...proposal, proposalDesc)
9797
await proposalTx.wait()

0 commit comments

Comments
 (0)