Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

truffle test问题 #37

Open
yangjianyao opened this issue Apr 26, 2020 · 0 comments
Open

truffle test问题 #37

yangjianyao opened this issue Apr 26, 2020 · 0 comments

Comments

@yangjianyao
Copy link

我将以前写的合约移植到这个项目来以后,合约部署成功了,开始运行truffle test进行测试,结果报错:
Warning: Both truffle-config.js and truffle.js were found. Using truffle-config.js.

Something went wrong while attempting to connect to the network. Check your network configuration.
Error: Returned error: Method not found
at Object.ErrorResponse (/Users/.config/yarn/global/node_modules/truffle/build/webpack:/node_modules/web3-core-helpers/src/errors.js:29:1)
at /Users/.config/yarn/global/node_modules/truffle/build/webpack:/node_modules/web3-core-requestmanager/src/index.js:140:1
at /Users/.config/yarn/global/node_modules/truffle/build/webpack:/packages/provider/wrapper.js:112:1
at XMLHttpRequest.request.onreadystatechange (/Users/.config/yarn/global/node_modules/truffle/build/webpack:/node_modules/web3-providers-http/src/index.js:96:1)
at XMLHttpRequestEventTarget.dispatchEvent (/Users/.config/yarn/global/node_modules/truffle/build/webpack:/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:1)
at XMLHttpRequest._setReadyState (/Users/.config/yarn/global/node_modules/truffle/build/webpack:/node_modules/xhr2-cookies/dist/xml-http-request.js:208:1)
at XMLHttpRequest._onHttpResponseEnd (/Users/.config/yarn/global/node_modules/truffle/build/webpack:/node_modules/xhr2-cookies/dist/xml-http-request.js:318:1)
at IncomingMessage. (/Users/.config/yarn/global/node_modules/truffle/build/webpack:/node_modules/xhr2-cookies/dist/xml-http-request.js:289:47)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickCallback (internal/process/next_tick.js:181:9)
Truffle v5.1.23 (core: 5.1.23)
Node v8.17.0
我想问下这个不知道这种测试吗?有什么方法就行合约测试吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant