mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-02 13:23:10 +00:00
Fix deployment modules for local env
This commit is contained in:
parent
f5b9ded909
commit
fc2c710377
@ -28,12 +28,12 @@ module.exports = buildModule("Marketplace", (m) => {
|
||||
[configuration, token, verifier],
|
||||
{
|
||||
from: deployer,
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
let testMarketplace
|
||||
|
||||
if (hre.network.config.tags.includes("local")) {
|
||||
if (hre.network.config && hre.network.config.tags.includes("local")) {
|
||||
const { testVerifier } = m.useModule(VerifierModule)
|
||||
|
||||
testMarketplace = m.contract(
|
||||
@ -41,7 +41,7 @@ module.exports = buildModule("Marketplace", (m) => {
|
||||
[configuration, token, testVerifier],
|
||||
{
|
||||
from: deployer,
|
||||
}
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@ -10,11 +10,13 @@ module.exports = buildModule("Token", (m) => {
|
||||
from: deployer,
|
||||
})
|
||||
|
||||
if (hre.network.config.tags.includes("local")) {
|
||||
if (hre.network.config && hre.network.config.tags.includes("local")) {
|
||||
for (let i = 0; i < MAX_ACCOUNTS; i++) {
|
||||
const account = m.getAccount(i)
|
||||
const futureId = "SendingEth" + i
|
||||
m.send(futureId, account, MINTED_TOKENS)
|
||||
m.call(token, "mint", [account, MINTED_TOKENS], {
|
||||
from: deployer,
|
||||
id: `SendingEth_${i}`,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user