mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-02 13:23:10 +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 configuration = m.getParameter("configuration", getDefaultConfig())
|
||||
|
||||
const marketplace = m.contract(
|
||||
"Marketplace",
|
||||
[configuration, token, verifier],
|
||||
{
|
||||
let marketplace
|
||||
|
||||
if (process.env.TOKEN_ADDRESS) {
|
||||
marketplace = m.contractAt("TestToken", process.env.TOKEN_ADDRESS, {})
|
||||
} else {
|
||||
marketplace = m.contract("Marketplace", [configuration, token, verifier], {
|
||||
from: deployer,
|
||||
},
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
let testMarketplace
|
||||
const config = hre.network.config
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user