mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-04 06:13:09 +00:00
Add TOKEN_ADDRESS to reuse the token contract deployed
This commit is contained in:
parent
70433f1bde
commit
7cf952c63b
@ -18,13 +18,15 @@ module.exports = buildModule("Marketplace", (m) => {
|
|||||||
const { verifier } = m.useModule(VerifierModule)
|
const { verifier } = m.useModule(VerifierModule)
|
||||||
const configuration = m.getParameter("configuration", getDefaultConfig())
|
const configuration = m.getParameter("configuration", getDefaultConfig())
|
||||||
|
|
||||||
const marketplace = m.contract(
|
let marketplace
|
||||||
"Marketplace",
|
|
||||||
[configuration, token, verifier],
|
if (process.env.TOKEN_ADDRESS) {
|
||||||
{
|
marketplace = m.contractAt("TestToken", process.env.TOKEN_ADDRESS, {})
|
||||||
|
} else {
|
||||||
|
marketplace = m.contract("Marketplace", [configuration, token, verifier], {
|
||||||
from: deployer,
|
from: deployer,
|
||||||
},
|
})
|
||||||
)
|
}
|
||||||
|
|
||||||
let testMarketplace
|
let testMarketplace
|
||||||
const config = hre.network.config
|
const config = hre.network.config
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user