You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我将以前写的合约移植到这个项目来以后,合约部署成功了,开始运行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
我想问下这个不知道这种测试吗?有什么方法就行合约测试吗?
The text was updated successfully, but these errors were encountered:
我将以前写的合约移植到这个项目来以后,合约部署成功了,开始运行truffle test进行测试,结果报错:
Warning: Both truffle-config.js and truffle.js were found. Using truffle-config.js.
The text was updated successfully, but these errors were encountered: