Skip to content

fix: import error

fix: import error #27

Triggered via pull request July 2, 2024 04:31
Status Failure
Total duration 3m 48s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 8 warnings
Build and Test
@galxe-identity-protocol/sdk#test: command (/home/runner/work/identity-protocol/identity-protocol/packages/sdk) /home/runner/setup-pnpm/node_modules/.bin/pnpm run test exited (1)
src/crypto/hash.test.ts > keccak256 > str hash: packages/sdk/src/crypto/hash.ts#L92
TypeError: invalid BytesLike value (argument="data", value="galxe", code=INVALID_ARGUMENT, version=6.12.1) ❯ makeError ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/ethers/src.ts/utils/errors.ts:687:21 ❯ assert ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/ethers/src.ts/utils/errors.ts:715:25 ❯ assertArgument ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/ethers/src.ts/utils/errors.ts:727:5 ❯ _getBytes ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/ethers/src.ts/utils/data.ts:44:5 ❯ getBytes ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/ethers/src.ts/utils/data.ts:55:12 ❯ Module.keccak256 ../../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/ethers/src.ts/crypto/keccak.ts:45:18 ❯ Module.keccak256Str src/crypto/hash.ts:92:27 ❯ src/crypto/hash.test.ts:30:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'INVALID_ARGUMENT', argument: 'data', value: 'galxe', shortMessage: 'invalid BytesLike value' }
Build and Test
Process completed with exit code 1.
Build and Test: apps/issuer/src/issuer/marshal.ts#L11
Unexpected var, use let or const instead
Build and Test: apps/issuer/src/server.ts#L1
Require statement not part of import statement
Build and Test: apps/issuer/src/server.ts#L12
ISSUER_PK is not listed as a dependency in turbo.json
Build and Test: apps/issuer/src/server.ts#L15
ISSUER_ID is not listed as a dependency in turbo.json
Build and Test: apps/issuer/src/server.ts#L48
SERVER_PORT is not listed as a dependency in turbo.json
Build and Test: apps/issuer/src/server.ts#L62
HEALTH_PORT is not listed as a dependency in turbo.json
Build and Test: apps/tutorial/src/tutorial1.ts#L11
'statement' is defined but never used
Build and Test: apps/tutorial/src/tutorial1.ts#L12
'claimType' is defined but never used