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.
Asked
Active
Viewed 430 times
4
Jung Chun
- 191
- 13
-
What OS you have? – ferit Jan 07 '19 at 17:12
-
I use MacOS @ferit – Jung Chun Jan 08 '19 at 03: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 Berg Jun 19 '22 at 12:25
1 Answers
0
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
Matt Swezey
- 1,246
- 6
- 13