mirror of
https://github.com/status-im/codex-contracts-eth.git
synced 2025-02-12 08:26:46 +00:00
Fix marketplace deployment script
This commit is contained in:
parent
079ac4766c
commit
79d9c43beb
@ -2,7 +2,7 @@ const MARKETPLACE_HARDCODED_ADDRESS = "0x59b670e9fA9D0A427751Af201D676719a970857
|
|||||||
|
|
||||||
async function deployMarketplace({ deployments, getNamedAccounts }) {
|
async function deployMarketplace({ deployments, getNamedAccounts }) {
|
||||||
const token = await deployments.get("TestToken")
|
const token = await deployments.get("TestToken")
|
||||||
const verifier = await deployments.get("Verifier")
|
const verifier = await deployments.get("Groth16Verifier")
|
||||||
const configuration = {
|
const configuration = {
|
||||||
collateral: {
|
collateral: {
|
||||||
repairRewardPercentage: 10,
|
repairRewardPercentage: 10,
|
||||||
@ -16,7 +16,7 @@ async function deployMarketplace({ deployments, getNamedAccounts }) {
|
|||||||
downtime: 64,
|
downtime: 64,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
const args = [token.address, configuration, verifier.address]
|
const args = [configuration, token.address, verifier.address]
|
||||||
const { deployer } = await getNamedAccounts()
|
const { deployer } = await getNamedAccounts()
|
||||||
await deployments.deploy("Marketplace", { args, from: deployer })
|
await deployments.deploy("Marketplace", { args, from: deployer })
|
||||||
}
|
}
|
||||||
@ -47,4 +47,4 @@ module.exports = async (environment) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports.tags = ["Marketplace"]
|
module.exports.tags = ["Marketplace"]
|
||||||
module.exports.dependencies = ["TestToken", "Verifier"]
|
module.exports.dependencies = ["TestToken", "Groth16Verifier"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user