Skip to content

Small update to test case #305

Small update to test case

Small update to test case #305

Triggered via push May 26, 2026 08:58
Status Failure
Total duration 52s
Artifacts –
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
testing
Process completed with exit code 1.
test/generation/generation.test.ts > Code generation & target code optimisation > should compile bitshift.cash to correct Script and artifact: packages/cashc/test/generation/generation.test.ts#L14
AssertionError: expected { contractName: 'Bitshift', …(8) } to deeply equal { contractName: 'Bitshift', …(8) } - Expected + Received @@ -3,11 +3,11 @@ { "inputs": [], "name": "spend", }, ], - "bytecode": "1122334455667788 OP_4 OP_LSHIFTBIN OP_4 OP_RSHIFTBIN 0000000055667788 OP_EQUALVERIFY OP_8 OP_2 OP_RSHIFTNUM OP_1 OP_LSHIFTNUM OP_16 OP_NUMEQUAL", + "bytecode": "1122334455667788 OP_4 OP_LSHIFTBIN OP_4 OP_RSHIFTBIN 0000000055667788 OP_EQUALVERIFY OP_8 OP_2 OP_RSHIFTNUM OP_1 OP_LSHIFTNUM OP_4 OP_NUMEQUAL", "compiler": { "name": "cashc", "options": { "enforceFunctionParameterTypes": true, "enforceLocktimeGuard": true, @@ -15,23 +15,25 @@ "version": "0.13.0", }, "constructorInputs": [], "contractName": "Bitshift", "debug": { - "bytecode": "081122334455667788549854990800000000556677888858528e518d609c", + "bytecode": "081122334455667788549854990800000000556677888858528e518d549c", "logs": [], "requires": [ { "ip": 6, "line": 6, + "message": undefined, }, { "ip": 14, "line": 11, + "message": undefined, }, ], - "sourceMap": "3:19:3:37;4:24:4:25;:19:::1;:29::30:0;:19:::1;6:21:6:39:0;:8::41:1;8:16:8:17:0;9:21:9:22;:16:::1;:26::27:0;:16:::1;11:22:11:24:0;:8::26:1", + "sourceMap": "3:19:3:37;4:24:4:25;:19:::1;:29::30:0;:19:::1;6:21:6:39:0;:8::41:1;8:16:8:17:0;9:21:9:22;:16:::1;:26::27:0;:16:::1;11:22:11:23:0;:8::25:1", }, "fingerprint": "2c9d2ddcd53c6f4e28320acf336260ece7958753802381a2528ddfa1840eb88a", "source": "contract Bitshift() { function spend() { bytes8 x = 0x1122334455667788; ❯ test/generation/generation.test.ts:14:24
testing
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v3, actions/setup-node@v3. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/