Created
March 17, 2023 11:44
-
-
Save bertolo1988/096d436f072d2513eb4ff1cd83201c47 to your computer and use it in GitHub Desktop.
Launches an EIP-1193 provider locally.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ganache = require('ganache'); | |
const options = {}; | |
const server = ganache.server(options); | |
const PORT = 0; // 0 means any available port | |
server.listen(PORT, async (err) => { | |
if (err) throw err; | |
console.log(`ganache listening on port ${server.address().port}...`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment