From fb17fb5843651cd030f67f2d9f79e5173d734578 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Wed, 31 Jan 2024 15:58:18 +0100 Subject: [PATCH] Fix deployment bug in loading zkey hash --- deploy/marketplace.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deploy/marketplace.js b/deploy/marketplace.js index 36acba1..c75aefb 100644 --- a/deploy/marketplace.js +++ b/deploy/marketplace.js @@ -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 }) @@ -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 })