MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / startGanache

Function startGanache

contracts/scripts/util.ts:128–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126}
127
128async function startGanache() {
129 return new Promise((resolve, reject) => {
130 const server = ganache.server({
131 miner: { defaultGasPrice: '0x0' },
132 chain: { hardfork: 'berlin' },
133 logging: { quiet: true },
134 })
135 server.listen(isolatedPort, (err) => {
136 if (err) reject(err)
137 else resolve(server)
138 })
139 })
140}
141
142async function stopGanache(server) {
143 return new Promise((resolve, reject) => {

Callers 1

getRuntimeBytecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected