Skip to content

Commit

Permalink
wait
Browse files Browse the repository at this point in the history
  • Loading branch information
critesjosh authored Oct 4, 2024
1 parent a25719c commit 5b82894
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ async function main() {
let secretKey = Fr.random();
let salt = Fr.random();


let schnorrAccount = await getSchnorrAccount(pxe, secretKey, deriveSigningKey(secretKey), salt);
const { address, publicKeys, partialAddress } = schnorrAccount.getCompleteAddress();
let tx = await schnorrAccount.deploy();
let wallet = await schnorrAccount.register();

await EasyPrivateVotingContract.deploy(wallets[0], address).send().deployed()
let tx = await schnorrAccount.deploy().wait();
let wallet = await schnorrAccount.getWallet();
await EasyPrivateVotingContract.deploy(wallet, address).send().deployed()
// let token = await TokenContract.deploy(wallet, wallet.getAddress(), "Test", "TST", 18).send().deployed();
// await token.methods.mint_private(wallet.getAddress(), 100).send().wait();
}
Expand Down

0 comments on commit 5b82894

Please sign in to comment.