mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-08 16:23:12 +00:00
Add guard to check that configs has tags
This commit is contained in:
parent
28cf61f45e
commit
36a5d02fee
@ -27,8 +27,9 @@ module.exports = buildModule("Marketplace", (m) => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
let testMarketplace
|
let testMarketplace
|
||||||
|
const config = hre.network.config
|
||||||
|
|
||||||
if (hre.network.config && hre.network.config.tags.includes("local")) {
|
if (config && config.tags && config.tags.includes("local")) {
|
||||||
const { testVerifier } = m.useModule(VerifierModule)
|
const { testVerifier } = m.useModule(VerifierModule)
|
||||||
|
|
||||||
testMarketplace = m.contract(
|
testMarketplace = m.contract(
|
||||||
|
|||||||
@ -10,7 +10,9 @@ module.exports = buildModule("Token", (m) => {
|
|||||||
from: deployer,
|
from: deployer,
|
||||||
})
|
})
|
||||||
|
|
||||||
if (hre.network.config && hre.network.config.tags.includes("local")) {
|
const config = hre.network.config
|
||||||
|
|
||||||
|
if (config && config.tags && config.tags.includes("local")) {
|
||||||
for (let i = 0; i < MAX_ACCOUNTS; i++) {
|
for (let i = 0; i < MAX_ACCOUNTS; i++) {
|
||||||
const account = m.getAccount(i)
|
const account = m.getAccount(i)
|
||||||
m.call(token, "mint", [account, MINTED_TOKENS], {
|
m.call(token, "mint", [account, MINTED_TOKENS], {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user