首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >TestRPC帐户锁定

TestRPC帐户锁定
EN

Ethereum用户
提问于 2017-04-06 09:21:01
回答 2查看 938关注 0票数 0

我很难做松露和发泡剂。

我所采取的步骤是:

  • 创建一个空白项目并使用truffle init初始化
  • testrpc启动测试

尝试truffle migratetruffle test然后给我“

代码语言:javascript
复制
Error: authentication needed: password or unlock
at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/node_modules/web3/lib/web3/errors.js:35:16)
at /usr/local/lib/node_modules/truffle/node_modules/web3/lib/web3/requestmanager.js:86:36
at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/node_modules/web3/lib/web3/httpprovider.js:118:13)
at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/node_modules/xhr2/lib/xhr2.js:64:18)
at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/node_modules/xhr2/lib/xhr2.js:354:12)
at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/node_modules/xhr2/lib/xhr2.js:509:12)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/node_modules/xhr2/lib/xhr2.js:469:24)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)

据我所读,这似乎是一个帐户被锁定的错误,但testrpc的文档表明,默认情况下,它将创建10个未锁定的帐户--除非您指定--secure

EN

回答 2

Ethereum用户

回答已采纳

发布于 2017-04-06 10:16:29

我有另一个运行geth的实例,松露试图用它来代替testrpc,但我还没有部署。

  • 确保testrpc是唯一运行的geth实例。
  • 在尝试truffle deploytruffle test之前先调用truffle migrate
票数 2
EN

Ethereum用户

发布于 2017-04-06 10:27:54

您已经使用testrpc提供了prob,在使用松露进行部署之后,只需尝试重新启动它。你可以看这个图图:truffle+MetaMask+testrpc

票数 0
EN
页面原文内容由Ethereum提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://ethereum.stackexchange.com/questions/13976

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档