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
Just finished the exercice, and everything looked good, except for 1 of the test that i cannot succeed:
1) Contract: SupplyChain
Use cases
should error when not enough value is sent when purchasing an item:
Wrong kind of exception received
+ expected - actual
-Transaction: 0xf50038536fc0c89aa5f9380acee59ab810fff4082c8137b7ab9132f11ca4dde0 exited with an error (status 0). Reason given: Panic: Failed assertion.
- Please check that the transaction:
- - satisfies all conditions set by Solidity `require` statements.
- - does not trigger a Solidity `revert` statement.
+invalid opcode
at expectException (node_modules/@openzeppelin/test-helpers/src/expectRevert.js:20:30)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Context.<anonymous> (test/supply_chain.test.js:242:7)
I'm using solc version: solc: 0.8.13+commit.abaa5c0e.Emscripten.clang
Hi,
Just finished the exercice, and everything looked good, except for 1 of the test that i cannot succeed:
I'm using solc version: solc: 0.8.13+commit.abaa5c0e.Emscripten.clang
So, even with an
assert()
instead of arequire()
, i'm not able to generate aninvalid opcode
exception. You can check more on my repo: https://github.com/ConsenSys-Academy-Github-Classroom/supply-chain-exercise-kalote/Thanks for your support o/
Johann
The text was updated successfully, but these errors were encountered: