mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-02 13:23:10 +00:00
25 lines
640 B
JavaScript
25 lines
640 B
JavaScript
const hre = require("hardhat")
|
|
const { mine } = require("@nomicfoundation/hardhat-network-helpers")
|
|
|
|
const MarketplaceModule = require("../ignition/modules/marketplace")
|
|
|
|
async function main() {
|
|
if (hre.network.config.tags.includes("local")) {
|
|
await mine(256)
|
|
}
|
|
|
|
const { marketplace, testMarketplace } = await hre.ignition.deploy(
|
|
MarketplaceModule
|
|
)
|
|
|
|
console.info("Deployed Marketplace with Groth16 Verifier at:")
|
|
console.log(await marketplace.getAddress())
|
|
|
|
console.log()
|
|
|
|
console.info("Deployed Marketplace with Test Verifier at:")
|
|
console.log(await testMarketplace.getAddress())
|
|
}
|
|
|
|
main().catch(console.error)
|