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