Skip to content

Commit

Permalink
MACI interface change
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed Jan 18, 2024
1 parent a9cbe02 commit 7b56ada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/cli/vote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ async function main(args: any) {
await ethers.getSigners()

const state = JSONFile.read(stateFile)
const coordinatorKeyPair = new Keypair(PrivKey.unserialize(coordinatorMacisk))
const coordinatorKeyPair = new Keypair(PrivKey.deserialize(coordinatorMacisk))

const pollId = state.pollId
for (const contributor of [contributor1, contributor2]) {
const contributorAddress = await contributor.getAddress()
const contributorData = state.contributors[contributorAddress]
const contributorKeyPair = new Keypair(
PrivKey.unserialize(contributorData.privKey)
PrivKey.deserialize(contributorData.privKey)
)

const messages: { msgType: any; data: string[] }[] = []
Expand Down

0 comments on commit 7b56ada

Please sign in to comment.