Skip to content

Commit

Permalink
Fix deployment bug in loading zkey hash
Browse files Browse the repository at this point in the history
  • Loading branch information
markspanbroek committed Jan 31, 2024
1 parent 31bbd70 commit fb17fb5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deploy/marketplace.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ async function deployMarketplace({ deployments, getNamedAccounts }) {
const token = await deployments.get("TestToken")
const verifier = await deployments.get("Groth16Verifier")
const zkeyHash = loadZkeyHash(network.name)
const configuration = { ...CONFIGURATION, zkeyHash }
let configuration = CONFIGURATION
configuration.proofs.zkeyHash = zkeyHash
const args = [configuration, token.address, verifier.address]
const { deployer: from } = await getNamedAccounts()
const marketplace = await deployments.deploy("Marketplace", { args, from })
Expand All @@ -45,7 +46,8 @@ async function deployTestMarketplace({
const token = await deployments.get("TestToken")
const verifier = await deployments.get("TestVerifier")
const zkeyHash = loadZkeyHash(network.name)
const configuration = { ...CONFIGURATION, zkeyHash }
let configuration = CONFIGURATION
configuration.proofs.zkeyHash = zkeyHash
const args = [configuration, token.address, verifier.address]
const { deployer: from } = await getNamedAccounts()
const marketplace = await deployments.deploy("Marketplace", { args, from })
Expand Down

0 comments on commit fb17fb5

Please sign in to comment.