trufflesuite / trufflesuite.github.io

Staging Repo of Build Artifacts for Truffle Suite. Find the source at https://github.com/trufflesuite/trufflesuite.com
https://www.trufflesuite.com
34 stars 161 forks source link

Fix petId logic check in adopt function. #152

Closed raid5 closed 6 years ago

raid5 commented 7 years ago

This logic error was tossing an exception when running truffle test. I've included that stack trace below.

1) TestAdoption testUserCanAdoptPet:
   Error: VM Exception while processing transaction: invalid opcode
    at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:37980:16)
    at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:232762:36
    at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:217109:9
    at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:218534:13)
    at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:72280:18)
    at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:72570:12)
    at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:72725:12)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:72685:24)
bmmpxf commented 6 years ago

Thanks @raid5 ! We took care of this one.