I wanted to deploy the contract with the Ledger Nano S wallet, but not working on truffle. I installed npm package 'truffle-ledger-provider' and followed the practice. But I got an error ReferenceError: regeneratorRuntime is not defined
when I tried to deploy. I've searched google, but there was no good solution. Please help me.
-
What OS you have?– feritCommented Jan 7, 2019 at 17:12
-
I use MacOS @ferit– Jung ChunCommented Jan 8, 2019 at 3:46
-
If the reason for using a Ledger for deploying the contract is security, you don't have to use a hardware wallet necessarily. See this: Best security practices for contract deployment?.– Paul Razvan BergCommented Jun 19, 2022 at 12:25
Add a comment
|
1 Answer
Here's the fix. I just ran into this issue today.
// truffle-config.js
const regeneratorRuntime = require("regenerator-runtime");
Then install the NPM package:
npm install regenerator-runtime