mirror of
https://github.com/status-im/dagger-contracts.git
synced 2025-01-16 17:45:40 +00:00
Fix deployment bug in loading zkey hash
This commit is contained in:
parent
31bbd702c2
commit
fb17fb5843
@ -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 })
|
||||
|
Loading…
x
Reference in New Issue
Block a user